OSDN Git Service

Pass -shared/-non_shared to MIPS 3.0 linker if passed.
authormeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Aug 1992 21:21:55 +0000 (21:21 +0000)
committermeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Aug 1992 21:21:55 +0000 (21:21 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1968 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/mips/bsd-4.h
gcc/config/mips/dec-osf1.h
gcc/config/mips/iris3.h
gcc/config/mips/mips.h
gcc/config/mips/news5.h
gcc/config/mips/svr3-4.h
gcc/config/mips/svr4-4.h
gcc/config/mips/ultrix.h

index 6235340..586741c 100644 (file)
@@ -36,7 +36,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 %{!mgas: \
        %{EB} %{!EB: -EB} \
        %{EL: %e-EL not supported} \
-       %{bestGnum} \
+       %{bestGnum} %{shared} %{non_shared} \
        %{mips1} %{mips2} %{mips3} \
        -systype /bsd43/ }"
                    
index 0449136..55cc653 100644 (file)
@@ -17,10 +17,20 @@ You should have received a copy of the GNU General Public License
 along with GNU CC; see the file COPYING.  If not, write to
 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
-#define DECSTATION
 #define DEC_OSF1
 
 #define CPP_PREDEFINES "-D__ANSI_COMPAT \
 -DMIPSEL -DR3000 -DSYSTYPE_BSD -D_SYSTYPE_BSD -Dbsd4_2 -Dhost_mips -Dmips -Dosf -Dunix"
 
+#define LINK_SPEC "\
+%{G*} \
+%{!mgas: \
+       %{EL} %{!EL: -EL} \
+       %{EB: %e-EB not supported} \
+       %{mips1} %{mips2} %{mips3} \
+       %{bestGnum} %{shared} %{non_shared}}"
+
 #include "decstatn.h"
+
+/* turn off collect2 COFF support, since ldfcn now has elf declaration */
+#undef OBJECT_FORMAT_COFF
index 8536b1e..738a703 100644 (file)
@@ -52,7 +52,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #define LINK_SPEC "\
 %{G*} \
 %{!mgas: %{mips1} %{mips2} %{mips3} \
-        %{bestGnum}}"
+        %{bestGnum} %{shared} %{non_shared}}"
 
 /* Always use 1 for .file number.  I [meissner@osf.org] wonder why
    IRIS needs this.  */
index fd748b4..6ce78b9 100644 (file)
@@ -424,7 +424,7 @@ while (0)
        %{EB} %{!EB:-EB} \
        %{EL: %e-EL not supported} \
        %{mips1} %{mips2} %{mips3} \
-       %{bestGnum}}"
+       %{bestGnum} %{shared} %{non_shared}}"
 #endif                         /* LINK_SPEC defined */
 
 /* Define this macro meaning that `gcc' should find the library
index bfcf997..8499e47 100644 (file)
@@ -35,7 +35,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 %{G*} \
 %{!mgas: %{mips1} %{mips2} %{mips3} \
         %{EB} %{!EB:-EB} %{EL: %e-EL not supported} \
-        %{bestGnum}}"
+        %{bestGnum} %{shared} %{non_shared}}"
                    
 #define LIB_SPEC "\
 %{ZBSD43: -L/usr/ucblib -lucb -lresolv -lsocket -lnsl} \
index 264132c..81d5edb 100644 (file)
@@ -36,7 +36,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 %{!mgas: \
        %{EB} %{!EB:-EB} \
        %{EL: %e-EL not supported} \
-       %{bestGnum} \
+       %{bestGnum} %{shared} %{non_shared} \
        %{mips1} %{mips2} %{mips3} \
        -systype /sysv/}"
                    
index f19ddc8..9b90eb8 100644 (file)
@@ -36,7 +36,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 %{!mgas: \
        %{EB} %{!EB:-EB} \
        %{EL: %e-EL not supported} \
-       %{bestGnum} \
+       %{bestGnum} %{shared} %{non_shared} \
        %{mips1} %{mips2} %{mips3} \
        -systype /svr4/}"
                    
index ae27b86..e4983ce 100644 (file)
@@ -43,6 +43,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 %{.m:  -D__LANGUAGE_OBJECTIVE_C__ -D__LANGUAGE_OBJECTIVE_C} \
 %{!.S: -D__LANGUAGE_C__  -D__LANGUAGE_C %{!ansi:-DLANGUAGE_C}}"
 
+#ifndef LINK_SPEC
 #define LINK_SPEC "\
 %{G*} \
 %{!mgas: \
@@ -50,6 +51,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
        %{EB: %e-EB not supported} \
        %{mips1} %{mips2} %{mips3} \
        %{bestGnum}}"
+#endif
 
 #define LIB_SPEC "%{p:-lprof1} %{pg:-lprof1} -lc"