mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-12-09 06:40:24 +08:00
* ltdl.m4: Add support for GNU/FreeBSD.
* ltmain.in: Add support for GNU/FreeBSD.
This commit is contained in:
parent
71e3aa326e
commit
b37c4c3430
@ -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
|
||||
|
3
ltdl.m4
3
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
|
||||
;;
|
||||
|
12
ltmain.in
12
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
|
||||
|
Loading…
Reference in New Issue
Block a user