libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Libtool fix for Freebsd


From: Don Anderson
Subject: Libtool fix for Freebsd
Date: Tue, 27 Nov 2001 17:38:08 -0500 (EST)

Hello,

Here's a diff against the CVS trunk to address an issue on FreeBSD.
FreeBSD apparently shares with OpenBSD that -lc should not be
explicitly linked in.  We've tested the equivalent change made
against libtool 1.4.2.

- Don Anderson


Index: ChangeLog
===================================================================
RCS file: /cvsroot/libtool/libtool/ChangeLog,v
retrieving revision 1.1081
diff -u -r1.1081 ChangeLog
--- ChangeLog   2001/11/27 19:31:21     1.1081
+++ ChangeLog   2001/11/27 22:21:33
@@ -1,3 +1,9 @@
+2001-11-27  Donald D. Anderson  <address@hidden>
+
+       * ltmain.in: Treat freebsd like openbsd, in that -lc/-lc_r should
+       not be explicitly used.  ld handles this depending on the presence
+       of the -pthread option.
+
 2001-11-27  Robert Boehne  <address@hidden>
 
        With help from Michael Matz <address@hidden>:
Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/ltmain.in,v
retrieving revision 1.283
diff -u -r1.283 ltmain.in
--- ltmain.in   2001/11/27 19:31:22     1.283
+++ ltmain.in   2001/11/27 22:21:37
@@ -1227,7 +1227,7 @@
            # These systems don't actually have a C library (as such)
            test "X$arg" = "X-lc" && continue
            ;;
-         *-*-openbsd*)
+         *-*-openbsd* | *-*-freebsd*)
            # Do not include libc due to us having libc/libc_r.
            test "X$arg" = "X-lc" && continue
            ;;
@@ -1238,7 +1238,7 @@
          esac
        elif test "X$arg" = "X-lc_r"; then
         case $host in
-        *-*-openbsd*)
+        *-*-openbsd* | *-*-freebsd*)
           # Do not include libc_r directly, use -pthread flag.
           continue
           ;;
@@ -2846,7 +2846,7 @@
          *-*-netbsd*)
            # Don't link with libc until the a.out ld.so is fixed.
            ;;
-         *-*-openbsd*)
+         *-*-openbsd* | *-*-freebsd*)
            # Do not include libc due to us having libc/libc_r.
            test "X$arg" = "X-lc" && continue
            ;;

-- 

        =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
        Don Anderson                    address@hidden
        Sleepycat Software Inc.         +1-978-287-4781
        118 Tower Rd.                   http://www.sleepycat.com
        Lincoln, MA 01773




reply via email to

[Prev in Thread] Current Thread [Next in Thread]