aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/i386/linux-oldld.h
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-05-19 19:27:05 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-05-19 19:27:05 -0400
commitf218a117a0316c5d9eb4a4704fa52cfc80b3fc30 (patch)
tree0e0c13160f59ad8bab261985bbf7584cdfd89760 /gcc/config/i386/linux-oldld.h
parentc4b5dcfb9180171171a267ee82353ced376157d9 (diff)
downloadgcc-f218a117a0316c5d9eb4a4704fa52cfc80b3fc30.zip
gcc-f218a117a0316c5d9eb4a4704fa52cfc80b3fc30.tar.gz
gcc-f218a117a0316c5d9eb4a4704fa52cfc80b3fc30.tar.bz2
(CPP_SPEC): Add defines for -fPIC.
From-SVN: r9748
Diffstat (limited to 'gcc/config/i386/linux-oldld.h')
-rw-r--r--gcc/config/i386/linux-oldld.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/i386/linux-oldld.h b/gcc/config/i386/linux-oldld.h
index 970816f..107f06c 100644
--- a/gcc/config/i386/linux-oldld.h
+++ b/gcc/config/i386/linux-oldld.h
@@ -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