]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltdl.m4: Add support for GNU/FreeBSD.
authorRobert Millan <rmh@debian.org>
Tue, 3 Jun 2003 18:14:08 +0000 (18:14 +0000)
committerRobert Boehne <rboehne@gnu.org>
Tue, 3 Jun 2003 18:14:08 +0000 (18:14 +0000)
* ltmain.in: Add support for GNU/FreeBSD.

ChangeLog
ltdl.m4
ltmain.in

index e8a0657286902c0f21e3d8b73185cc918a80cb8c..6e025e8f428e6c2672ec7b5d464fd36d047dbd41 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-06-03  Robert Millan <rmh@debian.org>
+
+       * ltdl.m4: Add support for GNU/FreeBSD.
+       * ltmain.in: Add support for GNU/FreeBSD.
+
 2003-06-03  Albert Chin-A-Young  <china@thewrittenword.com>
 
        * libtool.m4: No need to use sed to remove leading comma when
diff --git a/ltdl.m4 b/ltdl.m4
index e742dd50247bc630b648b13c76982b02a9e84c5e..6a95b63a5c9268a717079e89f000c6540f2374a6 100644 (file)
--- a/ltdl.m4
+++ b/ltdl.m4
@@ -142,6 +142,9 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
     libltdl_cv_sys_dlopen_deplibs=yes
     ;;   
+  freebsd*-gnu*)
+    libltdl_cv_sys_dlopen_deplibs=yes
+    ;;
   gnu*)
     libltdl_cv_sys_dlopen_deplibs=yes
     ;;
index 3eaa26cb749da11a658de83e340c430a1d73823b..d56220fb310c6870941100947598166458a5fd0e 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -1262,6 +1262,9 @@ EOF
            # These systems don't actually have a C or math library (as such)
            continue
            ;;
+         *-*-freebsd*-gnu*)
+           # prevent being parsed by the freebsd regexp below
+           ;;
          *-*-mingw* | *-*-os2*)
            # These systems don't actually have a C library (as such)
            test "X$arg" = "X-lc" && continue
@@ -1277,6 +1280,9 @@ EOF
          esac
        elif test "X$arg" = "X-lc_r"; then
         case $host in
+        *-*-freebsd*-gnu*)
+          # prevent being parsed by the freebsd regexp below
+          ;;
         *-*-openbsd* | *-*-freebsd*)
           # Do not include libc_r directly, use -pthread flag.
           continue
@@ -3116,6 +3122,12 @@ EOF
          *-*-netbsd*)
            # Don't link with libc until the a.out ld.so is fixed.
            ;;
+         *-*-freebsd*-gnu*)
+           # Prevent $arg from being parsed by the freebsd regexp below.
+           if test "$build_libtool_need_lc" = "yes"; then
+             deplibs="$deplibs -lc"
+           fi
+           ;;
          *-*-openbsd* | *-*-freebsd*)
            # Do not include libc due to us having libc/libc_r.
            test "X$arg" = "X-lc" && continue