[perl #116785] libc_r was removed from recent versions of MidnightBSD and older versi...
authorLucas Holt <luke@foolishgames.com>
Sat, 16 Feb 2013 21:18:58 +0000 (13:18 -0800)
committerChris 'BinGOs' Williams <chris@bingosnet.co.uk>
Sun, 17 Feb 2013 14:09:14 +0000 (14:09 +0000)
This corrects build errors with threading enabled on MidnightBSD 0.4-CURRENT

Signed-off-by: Chris 'BinGOs' Williams <chris@bingosnet.co.uk>

hints/midnightbsd.sh

index b5ef050..13a5335 100644 (file)
@@ -33,12 +33,8 @@ d_voidsig='define'
 cat > UU/usethreads.cbu <<'EOCBU'
 case "$usethreads" in
 $define|true|[yY]*)
-        lc_r=`/sbin/ldconfig -r|grep ':-lc_r'|awk '{print $NF}'|sed -n '$p'`
-               ldflags="-pthread $ldflags"
-             d_gethostbyaddr_r="undef"
-             d_gethostbyaddr_r_proto="0"
-
-       set `echo X "$libswanted "| sed -e 's/ c / c_r /'`
+       ldflags="-pthread $ldflags"
+       set `echo X "$libswanted "| sed -e 's/ c //'`
        shift
        libswanted="$*"
        # Configure will probably pick the wrong libc to use for nm scan.