diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-09-11 03:03:52 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-09-11 03:03:52 +0000 |
commit | 6163065f7980474b627428fbc0b18dc210fc07a2 (patch) | |
tree | 930cbf2ceb8417a49ba750b03f6e74293e033cfe /hints | |
parent | 6c791c2c94206e808c6a387b986b6e24f3bf06b3 (diff) | |
download | perl-6163065f7980474b627428fbc0b18dc210fc07a2.tar.gz |
Enache still wants -pthread gone for FreeBSD 5.x
since it doesn't work with the latest -current.
p4raw-id: //depot/perl@21172
Diffstat (limited to 'hints')
-rw-r--r-- | hints/freebsd.sh | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/hints/freebsd.sh b/hints/freebsd.sh index c1874469f2..901415e2a4 100644 --- a/hints/freebsd.sh +++ b/hints/freebsd.sh @@ -222,27 +222,18 @@ Consider using the latest STABLE release. EOM exit 1 fi - # In principle, on FreeBSD 4.X, you can dispense - # with -pthread like this: - # cc -o tt{,.c} -nostdlib -lc_r /usr/lib/crt1.o - # On modern 5.X, however, one has to link with - # BOTH libc and libc_r. - # Using -pthread is just easier. - # If one wants to link against an alternative - # threads implementation (libthr, libpthread, etc), - # one has to jump through a number of hoops anyway, - # so no win there, so leave the -pthread in. - # --Anton Berezin <tobez> - ldflags="-pthread $ldflags" case "$osvers" in # Both in 4.x and 5.x gethostbyaddr_r exists but # it is "Temporary function, not threadsafe"... 4.*) d_gethostbyaddr_r="undef" d_gethostbyaddr_r_proto="0" + ldflags="-pthread $ldflags" ;; 5.*) d_gethostbyaddr_r="undef" d_gethostbyaddr_r_proto="0" - + # no need for -pthread in 5.* + ;; + *) ldflags="-pthread $ldflags" ;; esac ;; |