]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gnu.h (CPP_SPEC): Define __PIC__ and __pic__ if -fPIC or -fpic is specified.
authorMark Kettenis <kettenis@gnu.org>
Thu, 1 Jul 1999 00:53:36 +0000 (18:53 -0600)
committerJeff Law <law@gcc.gnu.org>
Thu, 1 Jul 1999 00:53:36 +0000 (18:53 -0600)
X
        * config/i386/gnu.h (CPP_SPEC): Define __PIC__ and __pic__ if
        -fPIC or -fpic is specified.

From-SVN: r27870

gcc/config/i386/gnu.h

index 632ca47d0b5d4cbdc32ec5a398adcce0220895f9..cd32b928f6681e45fa181d782753bcd5403b372a 100644 (file)
@@ -14,7 +14,9 @@
   -Dunix -Asystem(unix) -Asystem(posix) -D__GNU__ -Asystem(gnu)"
 
 #undef CPP_SPEC
-#define CPP_SPEC "%(cpp_cpu) %{posix:-D_POSIX_SOURCE} %{bsd:-D_BSD_SOURCE}"
+#define CPP_SPEC "%(cpp_cpu) \
+  %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} \
+  %{posix:-D_POSIX_SOURCE} %{bsd:-D_BSD_SOURCE}"
 
 #undef CC1_SPEC
 #define CC1_SPEC "%(cc1_cpu)"