diff options
author | Geoffrey Keating <geoffk@apple.com> | 2007-02-20 16:45:38 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2007-02-20 16:45:38 +0000 |
commit | 32ec65429c2d4b176bccc495682b1b37b3d31b7c (patch) | |
tree | e5332ce984509491d26f7b19e8e97225f98a4843 /gcc/config/rs6000/darwin.h | |
parent | c7e576cf1547b62332291d719985655c85cbbc6d (diff) | |
download | gcc-32ec65429c2d4b176bccc495682b1b37b3d31b7c.zip gcc-32ec65429c2d4b176bccc495682b1b37b3d31b7c.tar.gz gcc-32ec65429c2d4b176bccc495682b1b37b3d31b7c.tar.bz2 |
Index: gcc/ChangeLog
2007-02-20 Geoffrey Keating <geoffk@apple.com>
* config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
if user didn't pass it.
* config/i386/darwin.h (CC1_SPEC): Likewise.
* config/rs6000/darwin.h (CC1_SPEC): Likewise.
(DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
-mmacosx-version-min.
Index: gcc/testsuite/ChangeLog
2007-02-20 Geoffrey Keating <geoffk@apple.com>
* gcc.dg/darwin-minversion-1.c: New.
* gcc.dg/darwin-minversion-2.c: New.
From-SVN: r122166
Diffstat (limited to 'gcc/config/rs6000/darwin.h')
-rw-r--r-- | gcc/config/rs6000/darwin.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h index 9a000c8..6aa7d65 100644 --- a/gcc/config/rs6000/darwin.h +++ b/gcc/config/rs6000/darwin.h @@ -93,7 +93,7 @@ #define CC1_SPEC "\ %{g: %{!fno-eliminate-unused-debug-symbols: -feliminate-unused-debug-symbols }} \ %{static: %{Zdynamic: %e conflicting code gen style switches are used}}\ - -mmacosx-version-min=%(darwin_minversion) \ + %{!mmacosx-version-min=*:-mmacosx-version-min=%(darwin_minversion)} \ %{!mkernel:%{!static:%{!mdynamic-no-pic:-fPIC}}}" #define DARWIN_ARCH_SPEC "%{m64:ppc64;:ppc}" @@ -123,8 +123,7 @@ /* Determine a minimum version based on compiler options. */ #define DARWIN_MINVERSION_SPEC \ - "%{mmacosx-version-min=*:%*; \ - m64:10.4; \ + "%{m64:10.4; \ shared-libgcc:10.3; \ :10.1}" |