Commit 4d032a67 by Michael Meissner

Pass -shared/-non_shared to MIPS 3.0 linker if passed.

From-SVN: r1968
parent b842c19a
......@@ -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/ }"
......
......@@ -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
......@@ -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. */
......
......@@ -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
......
......@@ -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} \
......
......@@ -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/}"
......
......@@ -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/}"
......
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment