X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Ffreebsd.sh;h=44cf0ebaca53943d1904021368e2feb41350f99f;hb=4ea8010ab3e95796683d1a69375c8df8c4bea3fb;hp=f246bffd360830cbe444468ffcd5052247e0f3c1;hpb=b230e30d6b57ff1dff6b7ccb4076beb872594d5d;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/freebsd.sh b/hints/freebsd.sh index f246bff..44cf0eb 100644 --- a/hints/freebsd.sh +++ b/hints/freebsd.sh @@ -114,7 +114,7 @@ case "$osvers" in lddlflags="-Bshareable $lddlflags" ;; -*) +3*|4*|5*|6*) objformat=`/usr/bin/objformat` if [ x$objformat = xaout ]; then if [ -e /usr/lib/aout ]; then @@ -130,6 +130,13 @@ case "$osvers" in fi cccdlflags='-DPIC -fPIC' ;; +*) + libpth="/usr/lib /usr/local/lib" + glibpth="/usr/lib /usr/local/lib" + ldflags="-Wl,-E " + lddlflags="-shared " + cccdlflags='-DPIC -fPIC' + ;; esac case "$osvers" in @@ -211,15 +218,7 @@ EOM exit 1 ;; - 7.*) - # 7.x doesn't install libc_r by default, and Configure - # would fail in the code following - # - # gethostbyaddr_r() appears to have been implemented in 6.x+ - ldflags="-pthread $ldflags" - ;; - - *) + [3-5].*) if [ ! -r "$lc_r" ]; then cat <&4 POSIX threads should be supported by FreeBSD $osvers -- @@ -251,6 +250,14 @@ EOM d_gethostbyaddr_r_proto="0" ;; + *) + # 7.x doesn't install libc_r by default, and Configure + # would fail in the code following + # + # gethostbyaddr_r() appears to have been implemented in 6.x+ + ldflags="-pthread $ldflags" + ;; + esac case "$osvers" in