diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-09-11 02:55:49 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-09-11 02:55:49 +0000 |
commit | b6e606bfcb6c19981f2f378399aaee4ad96723d8 (patch) | |
tree | 7de23ba0d1e671e931c475537db8280f6c59b82f /hints/freebsd.sh | |
parent | 3927333227fbad66c1c7ecc9cb01abe773020682 (diff) | |
download | perl-b6e606bfcb6c19981f2f378399aaee4ad96723d8.tar.gz |
Retract #21168 based on advice from Anton Berezin (added).
p4raw-id: //depot/perl@21169
Diffstat (limited to 'hints/freebsd.sh')
-rw-r--r-- | hints/freebsd.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/hints/freebsd.sh b/hints/freebsd.sh index 2dd6a6cbbe..c1874469f2 100644 --- a/hints/freebsd.sh +++ b/hints/freebsd.sh @@ -222,6 +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"... |