]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in: Treat freebsd like openbsd, in that -lc/-lc_r should
authorDonald D. Anderson <dda@sleepycat.com>
Tue, 27 Nov 2001 23:15:11 +0000 (23:15 +0000)
committerRobert Boehne <rboehne@gnu.org>
Tue, 27 Nov 2001 23:15:11 +0000 (23:15 +0000)
not be explicitly used.  ld handles this depending on the presence
of the -pthread option.

ChangeLog
ltmain.in

index bfa441ed6bf9d9780ff82523a49252ada973bfc9..6d44b1d53f65cbc215211b59f4223b829295046b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-11-27  Donald D. Anderson  <dda@sleepycat.com>
+
+       * 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-15  Guido Draheim  <guidod-2001q3@gmx.de>
 
        * ltdl.m4: Changed "underscode to underscore".
index 7b960e5c1f563ed8cd19eb69dd583eb553f97182..34d96f3b03ca62d6a04d679cdba283be07cfb5d9 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -1043,14 +1043,14 @@ compiler."
            # 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
            ;;
          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
            ;;
@@ -2449,7 +2449,7 @@ compiler."
          *-*-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.
            ;;
          *)