(CPP_SPEC): Add defines for -fPIC.
authorRichard Kenner <kenner@gcc.gnu.org>
Fri, 19 May 1995 23:27:05 +0000 (19:27 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 19 May 1995 23:27:05 +0000 (19:27 -0400)
From-SVN: r9748

gcc/config/i386/linux-aout.h
gcc/config/i386/linux-oldld.h

index 5dba22e8421142bfdd77b2c5855bc39ef3ef3ccd..dfbb7e77921f28962b2b6445ca432218358295a3 100644 (file)
@@ -31,9 +31,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #undef CPP_SPEC
 #if TARGET_CPU_DEFAULT == 2
-#define CPP_SPEC "%{!m386:-D__i486__} %{posix:-D_POSIX_SOURCE}"
+#define CPP_SPEC "%{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{!m386:-D__i486__} %{posix:-D_POSIX_SOURCE}"
 #else
-#define CPP_SPEC "%{m486:-D__i486__} %{posix:-D_POSIX_SOURCE}"
+#define CPP_SPEC "%{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{m486:-D__i486__} %{posix:-D_POSIX_SOURCE}"
 #endif
 
 #undef SIZE_TYPE
index 970816f7f0ebab6a12ed5e69fab075e14c3e95d7..107f06ccbf62de58e18d2f12c1b2253ae61df2e3 100644 (file)
@@ -31,9 +31,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #undef CPP_SPEC
 #if TARGET_CPU_DEFAULT == 2
-#define CPP_SPEC "%{!m386:-D__i486__} %{posix:-D_POSIX_SOURCE}"
+#define CPP_SPEC "%{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{!m386:-D__i486__} %{posix:-D_POSIX_SOURCE}"
 #else
-#define CPP_SPEC "%{m486:-D__i486__} %{posix:-D_POSIX_SOURCE}"
+#define CPP_SPEC "%{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{m486:-D__i486__} %{posix:-D_POSIX_SOURCE}"
 #endif
 
 #undef SIZE_TYPE