Commit 95c0fb7a by Mike Stump Committed by Mike Stump

darwin-c.c (darwin_cpp_builtins): Move __STATIC__ and __DYNAMIC__ from here back to ...

	* config/darwin-c.c (darwin_cpp_builtins): Move __STATIC__ and
	__DYNAMIC__ from here back to ...
	* config/darwin.h (CPP_SPEC): ... here.
Radar 4804385

From-SVN: r118082
parent 88784637
2006-10-27 Mike Stump <mrs@apple.com>
* config/darwin-c.c (darwin_cpp_builtins): Move __STATIC__ and
__DYNAMIC__ from here back to ...
* config/darwin.h (CPP_SPEC): ... here.
2006-10-26 Nathan Froyd <froydnj@codesourcery.com> 2006-10-26 Nathan Froyd <froydnj@codesourcery.com>
Nathan Sidwell <nathan@codesourcery.com> Nathan Sidwell <nathan@codesourcery.com>
......
...@@ -619,9 +619,4 @@ darwin_cpp_builtins (cpp_reader *pfile) ...@@ -619,9 +619,4 @@ darwin_cpp_builtins (cpp_reader *pfile)
if (darwin_macosx_version_min) if (darwin_macosx_version_min)
builtin_define_with_value ("__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__", builtin_define_with_value ("__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__",
version_as_macro(), false); version_as_macro(), false);
if (flag_pic || MACHO_DYNAMIC_NO_PIC_P)
builtin_define ("__DYNAMIC__");
else
builtin_define ("__STATIC__");
} }
...@@ -214,7 +214,7 @@ extern GTY(()) int darwin_ms_struct; ...@@ -214,7 +214,7 @@ extern GTY(()) int darwin_ms_struct;
them to darwin_cpp_builtins in darwin-c.c. */ them to darwin_cpp_builtins in darwin-c.c. */
#undef CPP_SPEC #undef CPP_SPEC
#define CPP_SPEC "" #define CPP_SPEC "%{static:%{!dynamic:-D__STATIC__}}%{!static:-D__DYNAMIC__}"
/* This is mostly a clone of the standard LINK_COMMAND_SPEC, plus /* This is mostly a clone of the standard LINK_COMMAND_SPEC, plus
precomp, libtool, and fat build additions. Also we precomp, libtool, and fat build additions. Also we
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment