From 268e8aeed4905a300ae6a7a2ca22d94b9ce3cfcd Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Fri, 5 Mar 1999 01:21:14 +0000 Subject: [PATCH] configure.in: Support shared libs on FreeBSD 3.x and 4.x * 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 | 6 ++++++ libstdc++/config/freebsd.ml | 6 ++++++ libstdc++/configure.in | 2 ++ 3 files changed, 14 insertions(+) create mode 100644 libstdc++/config/freebsd.ml diff --git a/libstdc++/ChangeLog b/libstdc++/ChangeLog index 8796c6bb92a..27a4f2e3904 100644 --- a/libstdc++/ChangeLog +++ b/libstdc++/ChangeLog @@ -1,3 +1,9 @@ +Fri Mar 5 02:16:39 1999 Doug Rabson + + * 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 * 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 index 00000000000..7e6eecee80c --- /dev/null +++ b/libstdc++/config/freebsd.ml @@ -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) diff --git a/libstdc++/configure.in b/libstdc++/configure.in index 3da93009c20..a8259893315 100644 --- a/libstdc++/configure.in +++ b/libstdc++/configure.in @@ -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" ;;