configure.in: Support shared libs on FreeBSD 3.x and 4.x
authorDoug Rabson <dfr@freebsd.org>
Fri, 5 Mar 1999 01:21:14 +0000 (01:21 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 5 Mar 1999 01:21:14 +0000 (18:21 -0700)
        * configure.in: Support shared libs on FreeBSD 3.x and 4.x
        * config/freebsd.ml: A copy of config/linux.ml since they are both
        ELF and both have a shared libm.

From-SVN: r25594

libstdc++/ChangeLog
libstdc++/config/freebsd.ml [new file with mode: 0644]
libstdc++/configure.in

index 8796c6bb92aa706df2088ae9a35e65b1a1f6a794..27a4f2e39044ad0bfbfe14201cc4bd0db2afa03b 100644 (file)
@@ -1,3 +1,9 @@
+Fri Mar  5 02:16:39 1999  Doug Rabson  <dfr@freebsd.org>
+
+       * configure.in: Support shared libs on FreeBSD 3.x and 4.x
+       * config/freebsd.ml: A copy of config/linux.ml since they are both 
+       ELF and both have a shared libm.
+
 1999-02-24  Jason Merrill  <jason@yorick.cygnus.com>
 
        * configure.in: Fix INSTALLDIR sed pattern for Solaris sed.
diff --git a/libstdc++/config/freebsd.ml b/libstdc++/config/freebsd.ml
new file mode 100644 (file)
index 0000000..7e6eece
--- /dev/null
@@ -0,0 +1,6 @@
+# Elf with shared libm, so we can link it into the shared libstdc++.
+
+LIBS    = $(ARLIB) $(SHLIB) $(SHLINK) mshlink
+SHFLAGS = -Wl,-soname,$(MSHLINK)
+SHDEPS  = -lm
+DEPLIBS = ../$(SHLIB)
index 3da93009c20f8b407ea0f0e6af6f74f1c783b8cb..a8259893315038a2feea2ff423bc13f821a4bdee 100644 (file)
@@ -62,6 +62,8 @@ if [ "${shared}" = "yes" ]; then
     *-*-hpux*)         frags="${frags} hpux.ml" ;;
     *-*-irix[56]*)     frags="${frags} irix5.ml" ;;
     *-*-linux*aout*)   ;;
+    *-*-freebsd2)      ;;
+    *-*-freebsd*)      frags="${frags} freebsd.ml" ;;
     *-*-linux*)                frags="${frags} linux.ml" ;;
     *-*-openbsd*)              frags="${frags} openbsd.ml" ;;
     *-*-sysv[45]*|*-*-udk*)    frags="${frags} elf.ml" ;;