* ltdl.m4: Add support for GNU/FreeBSD.

* ltmain.in: Add support for GNU/FreeBSD.
This commit is contained in:
Robert Millan 2003-06-03 18:14:08 +00:00 committed by Robert Boehne
parent 71e3aa326e
commit b37c4c3430
3 changed files with 20 additions and 0 deletions

View File

@ -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

View File

@ -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
;;

View File

@ -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