diff options
author | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-12-04 07:09:56 +0000 |
---|---|---|
committer | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-12-04 07:09:56 +0000 |
commit | ccbeb8009651fad19daa20bee595261adb89899c (patch) | |
tree | 2dacc1a2069635a346a5ea33160cb96620451e44 /gcc/config/darwin10.h | |
parent | 8f8d3a1c23deed0660b11aeae9ca2a2907f4b296 (diff) | |
download | gcc-ccbeb8009651fad19daa20bee595261adb89899c.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181982 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/darwin10.h')
-rw-r--r-- | gcc/config/darwin10.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/config/darwin10.h b/gcc/config/darwin10.h index d393a03c5ac..fd664c3373a 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" |