Makefile.in (SHOPT): New macro, flag to ld to create shared library.

* Makefile.in (SHOPT): New macro, flag to ld to create
        shared library.  Defaults to "-shared".
        (SHLIB): Use new SHOPT rather than hardcoded "-shared".
        * configure.in: While configuring for *-*-beos*, if
        --enable-shared is given, add beos.ml to list of makefile
        frags.
        * config/beos.ml: New file.

From-SVN: r31373
This commit is contained in:
Fred Fish 2000-01-13 01:37:38 +00:00 committed by Jason Merrill
parent c135ea3910
commit 0753683c0a
4 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,13 @@
2000-01-12 Fred Fish <fnf@be.com>
* Makefile.in (SHOPT): New macro, flag to ld to create
shared library. Defaults to "-shared".
(SHLIB): Use new SHOPT rather than hardcoded "-shared".
* configure.in: While configuring for *-*-beos*, if
--enable-shared is given, add beos.ml to list of makefile
frags.
* config/beos.ml: New file.
1999-12-15 Jason Merrill <jason@casey.cygnus.com>
* Makefile.in (MYCXXFLAGS): Include $(CXXFLAGS).

View File

@ -39,6 +39,7 @@ SHLINK = libstdc++.so
MSHLINK = libstdc++.so.`echo $(VERSION) | sed 's/\([0-9]*[.][0-9]*\).*/\1/'`
SHFLAGS =
SHDEPS =
SHOPT = -shared
STAMP = bigstmp
@ -102,7 +103,7 @@ marlink:
@$(MAKE) $(MARLINK) "ARLINK=$(MARLINK)"
$(SHLIB): piclist
$(CC) $(LIBCXXFLAGS) $(SHFLAGS) -shared -o $(SHLIB) `cat piclist` $(SHDEPS)
$(CC) $(LIBCXXFLAGS) $(SHFLAGS) $(SHOPT) -o $(SHLIB) `cat piclist` $(SHDEPS)
$(SHARLIB): $(SHLIB)
-rm -f t$(SHARLIB)

4
libstdc++/config/beos.ml Normal file
View File

@ -0,0 +1,4 @@
LIBS = $(ARLIB) $(ARLINK) $(SHLIB) mshlink $(SHLINK)
SHFLAGS = -Wl,-soname,$(MSHLINK)
DEPLIBS = ../$(SHLIB)
SHOPT = -nostart

View File

@ -68,6 +68,7 @@ if [ "${shared}" = "yes" ]; then
esac
case "${target}" in
*-*-aix*) frags="${frags} aix.ml" ;;
*-*-beos*) frags="${frags} beos.ml" ;;
*-dec-osf*) frags="${frags} dec-osf.ml";;
*-*-freebsd2*) ;;
*-*-freebsd*) frags="${frags} freebsd.ml" ;;