aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/i386/darwin.h
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@apple.com>2007-02-17 01:47:38 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2007-02-17 01:47:38 +0000
commite4cad568ec6bf80b86288e88edd52e9ded6a1f59 (patch)
treeb54bac4eca8b3eb965931f5a68d3ddea7dbbb03d /gcc/config/i386/darwin.h
parent982afe020cd1d11ae7d25162a83810a9b65b7729 (diff)
downloadgcc-e4cad568ec6bf80b86288e88edd52e9ded6a1f59.zip
gcc-e4cad568ec6bf80b86288e88edd52e9ded6a1f59.tar.gz
gcc-e4cad568ec6bf80b86288e88edd52e9ded6a1f59.tar.bz2
darwin.h (LINK_SPEC): Always pass -macosx_version_min to linker.
* config/darwin.h (LINK_SPEC): Always pass -macosx_version_min to linker. (DARWIN_EXTRA_SPECS): Add %(darwin_minversion). * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call darwin_rs6000_override_options. (C_COMMON_OVERRIDE_OPTIONS): Expect darwin_macosx_version_min to be non-NULL always. (TARGET_C99_FUNCTIONS): Likewise. (CC1_SPEC): Always pass -mmacosx-version-min to cc1*. (DARWIN_MINVERSION_SPEC): New. * config/rs6000/rs6000.c (darwin_rs6000_override_options): New. * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min to cc1*. (DARWIN_MINVERSION_SPEC): New. * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL value. * config/darwin-c.c (darwin_cpp_builtins): Expect darwin_macosx_version_min to be non-NULL always. From-SVN: r122067
Diffstat (limited to 'gcc/config/i386/darwin.h')
-rw-r--r--gcc/config/i386/darwin.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/i386/darwin.h b/gcc/config/i386/darwin.h
index 109fe79..c00a791 100644
--- a/gcc/config/i386/darwin.h
+++ b/gcc/config/i386/darwin.h
@@ -74,6 +74,7 @@ Boston, MA 02110-1301, USA. */
#undef CC1_SPEC
#define CC1_SPEC "%{!mkernel:%{!static:%{!mdynamic-no-pic:-fPIC}}} \
+ -mmacosx-version-min=%(darwin_minversion) \
%{g: %{!fno-eliminate-unused-debug-symbols: -feliminate-unused-debug-symbols }}"
#undef ASM_SPEC
@@ -82,6 +83,9 @@ Boston, MA 02110-1301, USA. */
#define DARWIN_ARCH_SPEC "%{m64:x86_64;:i386}"
#define DARWIN_SUBARCH_SPEC DARWIN_ARCH_SPEC
+/* Determine a minimum version based on compiler options. */
+#define DARWIN_MINVERSION_SPEC "10.4"
+
#undef SUBTARGET_EXTRA_SPECS
#define SUBTARGET_EXTRA_SPECS \
DARWIN_EXTRA_SPECS \