define __SHARED__ for shared libraries.
authorMichael Meissner <meissner@gcc.gnu.org>
Fri, 8 Oct 1993 21:12:35 +0000 (21:12 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Fri, 8 Oct 1993 21:12:35 +0000 (21:12 +0000)
From-SVN: r5686

gcc/config/i386/osfelf.h
gcc/config/i386/osfrose.h

index 79fac9388140ee2e53079d4d68e53805b0c08587..1ec981ad91565a6b65ac1bef397c2f9236928d9a 100644 (file)
@@ -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}}}}} \
index 3ac921173c7605bfbf96892a482811108d54a9bc..42b1037ff0dcbe8e50ca1323ffa009f4a3f6b01f 100644 (file)
@@ -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}}}}} \