[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Libtool fix for Freebsd
From: |
Robert Boehne |
Subject: |
Re: Libtool fix for Freebsd |
Date: |
Tue, 27 Nov 2001 17:09:11 -0600 |
Don:
This looks good to me, I'm checking this in to the appropriate branches.
Thanks,
Robert
Don Anderson wrote:
>
> 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.
>
> - Don Anderson
>
> Index: ChangeLog
> ===================================================================
> RCS file: /cvsroot/libtool/libtool/ChangeLog,v
> retrieving revision 1.1081
> diff -u -r1.1081 ChangeLog
> --- ChangeLog 2001/11/27 19:31:21 1.1081
> +++ ChangeLog 2001/11/27 22:21:33
> @@ -1,3 +1,9 @@
> +2001-11-27 Donald D. Anderson <address@hidden>
> +
> + * 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-11-27 Robert Boehne <address@hidden>
>
> With help from Michael Matz <address@hidden>:
> Index: ltmain.in
> ===================================================================
> RCS file: /cvsroot/libtool/libtool/ltmain.in,v
> retrieving revision 1.283
> diff -u -r1.283 ltmain.in
> --- ltmain.in 2001/11/27 19:31:22 1.283
> +++ ltmain.in 2001/11/27 22:21:37
> @@ -1227,7 +1227,7 @@
> # These systems don't actually have a C library (as such)
> test "X$arg" = "X-lc" && continue
> ;;
> - *-*-openbsd*)
> + *-*-openbsd* | *-*-freebsd*)
> # Do not include libc due to us having libc/libc_r.
> test "X$arg" = "X-lc" && continue
> ;;
> @@ -1238,7 +1238,7 @@
> esac
> elif test "X$arg" = "X-lc_r"; then
> case $host in
> - *-*-openbsd*)
> + *-*-openbsd* | *-*-freebsd*)
> # Do not include libc_r directly, use -pthread flag.
> continue
> ;;
> @@ -2846,7 +2846,7 @@
> *-*-netbsd*)
> # Don't link with libc until the a.out ld.so is fixed.
> ;;
> - *-*-openbsd*)
> + *-*-openbsd* | *-*-freebsd*)
> # Do not include libc due to us having libc/libc_r.
> test "X$arg" = "X-lc" && continue
> ;;
>
> --
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Don Anderson address@hidden
> Sleepycat Software Inc. +1-978-287-4781
> 118 Tower Rd. http://www.sleepycat.com
> Lincoln, MA 01773
>
> _______________________________________________
> Libtool-patches mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/libtool-patches
--
Robert Boehne Software Engineer
Ricardo Software Chicago Technical Center
TEL: (630)789-0003 x. 238
FAX: (630)789-0127
email: address@hidden