From 1181354cb01f4ee50542985ebc8de10c9a3fa2e6 Mon Sep 17 00:00:00 2001 From: "Donald D. Anderson" Date: Tue, 27 Nov 2001 23:15:11 +0000 Subject: [PATCH] * 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. --- ChangeLog | 6 ++++++ ltmain.in | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index bfa441ed6..6d44b1d53 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-11-27 Donald D. Anderson + + * 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-15 Guido Draheim * ltdl.m4: Changed "underscode to underscore". diff --git a/ltmain.in b/ltmain.in index 7b960e5c1..34d96f3b0 100644 --- a/ltmain.in +++ b/ltmain.in @@ -1043,14 +1043,14 @@ compiler." # 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 ;; 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 ;; @@ -2449,7 +2449,7 @@ compiler." *-*-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. ;; *) -- 2.47.3