From: Michael Meissner Date: Fri, 8 Oct 1993 21:12:35 +0000 (+0000) Subject: define __SHARED__ for shared libraries. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1bf3a36e4d67104b22a2775f15df925dbea58451;p=gcc.git define __SHARED__ for shared libraries. From-SVN: r5686 --- diff --git a/gcc/config/i386/osfelf.h b/gcc/config/i386/osfelf.h index 79fac938814..1ec981ad915 100644 --- a/gcc/config/i386/osfelf.h +++ b/gcc/config/i386/osfelf.h @@ -25,7 +25,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #undef CPP_SPEC #define CPP_SPEC "\ -%{mrose: -D__ROSE__} %{!mrose: -D__ELF__} \ +%{mrose: -D__ROSE__ %{!pic-none: -D__SHARED__}} \ +%{!mrose: -D__ELF__ %{fpic: -D__SHARED__}} \ %{mno-underscores: -D__NO_UNDERSCORES__} \ %{!mrose: %{!munderscores: -D__NO_UNDERSCORES__}} \ %{.S: %{!ansi:%{!traditional:%{!traditional-cpp:%{!ftraditional: -traditional}}}}} \ diff --git a/gcc/config/i386/osfrose.h b/gcc/config/i386/osfrose.h index 3ac921173c7..42b1037ff0d 100644 --- a/gcc/config/i386/osfrose.h +++ b/gcc/config/i386/osfrose.h @@ -82,7 +82,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #undef CPP_SPEC #define CPP_SPEC "\ -%{!melf: -D__ROSE__} %{melf: -D__ELF__} \ +%{!melf: -D__ROSE__ %{!pic-none: -D__SHARED__}} \ +%{melf: -D__ELF__ %{fpic: -D__SHARED__}} \ %{mno-underscores: -D__NO_UNDERSCORES__} \ %{melf: %{!munderscores: -D__NO_UNDERSCORES__}} \ %{.S: %{!ansi:%{!traditional:%{!traditional-cpp:%{!ftraditional: -traditional}}}}} \