diff options
author | Jack Howarth <howarth@bromo.med.uc.edu> | 2011-12-04 07:09:56 +0000 |
---|---|---|
committer | Mike Stump <mrs@gcc.gnu.org> | 2011-12-04 07:09:56 +0000 |
commit | 517e88d729635b2172caa4273fc8892effe8fe0f (patch) | |
tree | 2dacc1a2069635a346a5ea33160cb96620451e44 /gcc | |
parent | 1b50e719165feefd6d405bebf963af0d2db4a53d (diff) | |
download | gcc-517e88d729635b2172caa4273fc8892effe8fe0f.zip gcc-517e88d729635b2172caa4273fc8892effe8fe0f.tar.gz gcc-517e88d729635b2172caa4273fc8892effe8fe0f.tar.bz2 |
darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Pass -no_pie for non-PIC code when targeting 10.7 or later.
2011-12-03 Jack Howarth <howarth@bromo.med.uc.edu>
* config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC):
Pass -no_pie for non-PIC code when targeting 10.7 or later.
From-SVN: r181982
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/darwin10.h | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 08b0440..9493159 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-12-03 Jack Howarth <howarth@bromo.med.uc.edu> + + * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): + Pass -no_pie for non-PIC code when targeting 10.7 or later. + 2011-12-03 Iain Sandoe <iains@gcc.gnu.org> * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when diff --git a/gcc/config/darwin10.h b/gcc/config/darwin10.h index d393a03..fd664c3 100644 --- a/gcc/config/darwin10.h +++ b/gcc/config/darwin10.h @@ -26,7 +26,9 @@ along with GCC; see the file COPYING3. If not see #define LINK_GCC_C_SEQUENCE_SPEC \ "%:version-compare(>= 10.6 mmacosx-version-min= -no_compact_unwind) \ %{!static:%{!static-libgcc: \ - %:version-compare(>= 10.6 mmacosx-version-min= -lSystem) } } %G %L" + %:version-compare(>= 10.6 mmacosx-version-min= -lSystem) } } \ + %{fno-pic|fno-PIC|fno-pie|fno-PIE|fapple-kext|mkernel|static|mdynamic-no-pic: \ + %:version-compare(>= 10.7 mmacosx-version-min= -no_pie) } %G %L" #undef DEF_MIN_OSX_VERSION #define DEF_MIN_OSX_VERSION "10.6" |