From f218a117a0316c5d9eb4a4704fa52cfc80b3fc30 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 19 May 1995 19:27:05 -0400 Subject: [PATCH] (CPP_SPEC): Add defines for -fPIC. From-SVN: r9748 --- gcc/config/i386/linux-aout.h | 4 ++-- gcc/config/i386/linux-oldld.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/config/i386/linux-aout.h b/gcc/config/i386/linux-aout.h index 5dba22e8421..dfbb7e77921 100644 --- a/gcc/config/i386/linux-aout.h +++ b/gcc/config/i386/linux-aout.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 diff --git a/gcc/config/i386/linux-oldld.h b/gcc/config/i386/linux-oldld.h index 970816f7f0e..107f06ccbf6 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 -- 2.30.2