diff options
-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}}}}} \ |