This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patches to support shared libraries on FreeBSD 3 and 4
- To: law at cygnus dot com
- Subject: Re: Patches to support shared libraries on FreeBSD 3 and 4
- From: Doug Rabson <dfr at nlsystems dot com>
- Date: Thu, 4 Mar 1999 10:37:41 +0000 (GMT)
- cc: egcs-patches at egcs dot cygnus dot com
On Thu, 4 Mar 1999, Jeffrey A Law wrote:
>
> In message <Pine.BSF.4.05.9903030930570.87070-400000@herring.nlsystems.com>yo
> u write:
> > David O'Brien <obrien@nuxi.com> asked me to submit these patches to egcs
> > for inclusion in both the 1.1.2 and HEAD branches. They enable support of
> > ELF shared libraries on both FreeBSD 3.x and FreeBSD 4.x.
> These changes will not go into egcs-1.1.2. Sorry.
>
> Please resend this as a single plaintext diff file for installation into the
> mainline tree. Sending me multiple metamail attachments just makes my life
> more difficult than it needs to be.
>
> Thanks,
No problem:
--- libstdc++/configure.in.orig Mon Nov 23 08:48:01 1998
+++ libstdc++/configure.in Mon Mar 1 09:30:55 1999
@@ -54,6 +54,8 @@
*-*-hpux*) frags="${frags} hpux.ml" ;;
*-*-irix[56]*) frags="${frags} irix5.ml" ;;
*-*-linux*aout*) ;;
+ *-*-freebsd2) ;;
+ *-*-freebsd*) frags="${frags} freebsd.ml" ;;
*-*-linux*) frags="${frags} linux.ml" ;;
*-*-sysv4*) frags="${frags} elf.ml" ;;
*-*-solaris*) frags="${frags} sol2shm.ml" ;;
--- libstdc++/config/freebsd.ml.orig Thu Feb 18 11:44:11 1999
+++ libstdc++/config/freebsd.ml Thu Feb 18 11:44:17 1999
@@ -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)
--- libstdc++/ChangeLog.orig Sun Feb 28 12:21:54 1999
+++ libstdc++/ChangeLog Sun Feb 28 12:26:16 1999
@@ -1,3 +1,9 @@
+1999-02-28 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.
+
Mon Nov 23 09:44:26 1998 Richard Henderson <rth@cygnus.com>
* configure.in: Append mh-ppcpic and mh-elfalphapic as appropriate.
--
Doug Rabson Mail: dfr@nlsystems.com
Nonlinear Systems Ltd. Phone: +44 181 442 9037