diff options
author | Michael Meissner <meissner@gcc.gnu.org> | 1993-10-08 21:12:35 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 1993-10-08 21:12:35 +0000 |
commit | 1bf3a36e4d67104b22a2775f15df925dbea58451 (patch) | |
tree | 4e6a6df077fa3ebb0d1642986e36695de2c03d2c | |
parent | e2381a6f75a3644353d8f1cc47c64b09a21c67ef (diff) | |
download | gcc-1bf3a36e4d67104b22a2775f15df925dbea58451.zip gcc-1bf3a36e4d67104b22a2775f15df925dbea58451.tar.gz gcc-1bf3a36e4d67104b22a2775f15df925dbea58451.tar.bz2 |
define __SHARED__ for shared libraries.
From-SVN: r5686
-rw-r--r-- | gcc/config/i386/osfelf.h | 3 | ||||
-rw-r--r-- | gcc/config/i386/osfrose.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/gcc/config/i386/osfelf.h b/gcc/config/i386/osfelf.h index 79fac93..1ec981a 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 3ac9211..42b1037 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}}}}} \ |