From: Robert Millan Date: Tue, 3 Jun 2003 18:14:08 +0000 (+0000) Subject: * ltdl.m4: Add support for GNU/FreeBSD. X-Git-Tag: help~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b37c4c34301946dfa2341bae88096e818b2a30e2;p=thirdparty%2Flibtool.git * ltdl.m4: Add support for GNU/FreeBSD. * ltmain.in: Add support for GNU/FreeBSD. --- diff --git a/ChangeLog b/ChangeLog index e8a065728..6e025e8f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-06-03 Robert Millan + + * ltdl.m4: Add support for GNU/FreeBSD. + * ltmain.in: Add support for GNU/FreeBSD. + 2003-06-03 Albert Chin-A-Young * libtool.m4: No need to use sed to remove leading comma when diff --git a/ltdl.m4 b/ltdl.m4 index e742dd502..6a95b63a5 100644 --- 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 ;; diff --git a/ltmain.in b/ltmain.in index 3eaa26cb7..d56220fb3 100644 --- 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