Hello,
Here's a diff against the CVS trunk to address an issue on FreeBSD.
FreeBSD apparently shares with OpenBSD that -lc should not be
explicitly linked in. We've tested the equivalent change made
against libtool 1.4.2.
Can someone pick up this fix? Thanks!
- Don Anderson
Index: ChangeLog
===================================================================
RCS file: /cvsroot/libtool/libtool/ChangeLog,v
retrieving revision 1.1076
diff -c -c -r1.1076 ChangeLog
*** ChangeLog 2001/10/30 23:35:59 1.1076
--- ChangeLog 2001/11/19 15:52:13
***************
*** 1,3 ****
--- 1,9 ----
+ 2001-11-13 Donald D. Anderson <[EMAIL PROTECTED]>
+
+ * 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-10-31 Raja R Harinath <[EMAIL PROTECTED]>
* configure.ac (pkgdatadir): Move the invocation of AC_INIT_AUTOMAKE
Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/ltmain.in,v
retrieving revision 1.280
diff -c -c -r1.280 ltmain.in
*** ltmain.in 2001/10/28 12:22:39 1.280
--- ltmain.in 2001/11/19 15:52:18
***************
*** 1225,1231 ****
# These systems don't actually have a C library (as such)
test "X$arg" = "X-lc" && continue
;;
! *-*-openbsd*)
# Do not include libc due to us having libc/libc_r.
test "X$arg" = "X-lc" && continue
;;
--- 1225,1231 ----
# These systems don't actually have a C library (as such)
test "X$arg" = "X-lc" && continue
;;
! *-*-openbsd* | *-*-freebsd*)
# Do not include libc due to us having libc/libc_r.
test "X$arg" = "X-lc" && continue
;;
***************
*** 1236,1242 ****
esac
elif test "X$arg" = "X-lc_r"; then
case $host in
! *-*-openbsd*)
# Do not include libc_r directly, use -pthread flag.
continue
;;
--- 1236,1242 ----
esac
elif test "X$arg" = "X-lc_r"; then
case $host in
! *-*-openbsd* | *-*-freebsd*)
# Do not include libc_r directly, use -pthread flag.
continue
;;
***************
*** 2834,2840 ****
*-*-netbsd*)
# Don't link with libc until the a.out ld.so is fixed.
;;
! *-*-openbsd*)
# Do not include libc due to us having libc/libc_r.
test "X$arg" = "X-lc" && continue
;;
--- 2834,2840 ----
*-*-netbsd*)
# Don't link with libc until the a.out ld.so is fixed.
;;
! *-*-openbsd* | *-*-freebsd*)
# Do not include libc due to us having libc/libc_r.
test "X$arg" = "X-lc" && continue
;;
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Anderson [EMAIL PROTECTED]
Sleepycat Software Inc. +1-978-287-4781
118 Tower Rd. http://www.sleepycat.com
Lincoln, MA 01773
_______________________________________________
Libtool mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/libtool