From: Richard Kenner Date: Fri, 19 May 1995 23:27:05 +0000 (-0400) Subject: (CPP_SPEC): Add defines for -fPIC. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f218a117a0316c5d9eb4a4704fa52cfc80b3fc30;p=gcc.git (CPP_SPEC): Add defines for -fPIC. From-SVN: r9748 --- 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