]> gcc.gnu.org Git - gcc.git/commitdiff
darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Pass -no_pie for non-PIC code when targeting...
authorJack Howarth <howarth@bromo.med.uc.edu>
Sun, 4 Dec 2011 07:09:56 +0000 (07:09 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Sun, 4 Dec 2011 07:09:56 +0000 (07:09 +0000)
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

gcc/ChangeLog
gcc/config/darwin10.h

index 08b04408ba9147a9760b2779ac0682c45614d059..9493159e2dedd00d016a37e5d6e14b392e0ffbfb 100644 (file)
@@ -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 
index d393a03c5acf3368312e27b6cb9718c31f07cf7a..fd664c3373a3bb7ca3ec8b550601c384c9d98d41 100644 (file)
@@ -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"
This page took 0.093481 seconds and 5 git commands to generate.