From 0753683c0ad9877dbd5c84a00d6d548c6d695d03 Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Thu, 13 Jan 2000 01:37:38 +0000 Subject: [PATCH] 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 --- libstdc++/ChangeLog | 10 ++++++++++ libstdc++/Makefile.in | 3 ++- libstdc++/config/beos.ml | 4 ++++ libstdc++/configure.in | 1 + 4 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 libstdc++/config/beos.ml diff --git a/libstdc++/ChangeLog b/libstdc++/ChangeLog index cdd427e6824..8a882b7124b 100644 --- a/libstdc++/ChangeLog +++ b/libstdc++/ChangeLog @@ -1,3 +1,13 @@ +2000-01-12 Fred Fish + + * 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 * Makefile.in (MYCXXFLAGS): Include $(CXXFLAGS). diff --git a/libstdc++/Makefile.in b/libstdc++/Makefile.in index 1b5c85a6fb6..ae8b5c3dae4 100644 --- a/libstdc++/Makefile.in +++ b/libstdc++/Makefile.in @@ -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) diff --git a/libstdc++/config/beos.ml b/libstdc++/config/beos.ml new file mode 100644 index 00000000000..f90b0b02357 --- /dev/null +++ b/libstdc++/config/beos.ml @@ -0,0 +1,4 @@ +LIBS = $(ARLIB) $(ARLINK) $(SHLIB) mshlink $(SHLINK) +SHFLAGS = -Wl,-soname,$(MSHLINK) +DEPLIBS = ../$(SHLIB) +SHOPT = -nostart diff --git a/libstdc++/configure.in b/libstdc++/configure.in index e246360593c..546fdb843c7 100644 --- a/libstdc++/configure.in +++ b/libstdc++/configure.in @@ -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" ;;