From: Mark Kettenis Date: Thu, 1 Jul 1999 00:53:36 +0000 (-0600) Subject: gnu.h (CPP_SPEC): Define __PIC__ and __pic__ if -fPIC or -fpic is specified. X-Git-Tag: prereleases/gcc-2.95-test~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42b9e9f2eea2ee87fc4c4717935a664252c059b1;p=thirdparty%2Fgcc.git gnu.h (CPP_SPEC): Define __PIC__ and __pic__ if -fPIC or -fpic is specified. X * config/i386/gnu.h (CPP_SPEC): Define __PIC__ and __pic__ if -fPIC or -fpic is specified. From-SVN: r27870 --- diff --git a/gcc/config/i386/gnu.h b/gcc/config/i386/gnu.h index 632ca47d0b5d..cd32b928f668 100644 --- a/gcc/config/i386/gnu.h +++ b/gcc/config/i386/gnu.h @@ -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)"