diff options
author | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1997-10-01 17:04:12 +0000 |
---|---|---|
committer | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1997-10-01 17:04:12 +0000 |
commit | dc66995c1ead9543241b576ecca9933210bf2cd5 (patch) | |
tree | a24ec206793f977b41eba2993227bac35006b26c /hints | |
parent | 44a0ac01b39ee4f6b2ddaecc044f8531c3b8c232 (diff) | |
download | perl-dc66995c1ead9543241b576ecca9933210bf2cd5.tar.gz |
Start of Configure support for -Dusethreads plus associated
Linux hints.
p4raw-id: //depot/perl@88
Diffstat (limited to 'hints')
-rw-r--r-- | hints/linux.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/hints/linux.sh b/hints/linux.sh index d458c49f80..54bc12295c 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -182,3 +182,15 @@ then else echo 'Your csh is really tcsh. Good.' fi + +if [ "X$usethreads" != "X" ]; then + ccflags="-D_REENTRANT -DUSE_THREADS $ccflags" + cppflags="-D_REENTRANT -DUSE_THREADS $cppflags" + # -lpthread needs to come before -lc but after other libraries such + # as -lgdbm and such like. We assume here that -lc is present in + # libswanted. If that fails to be true in future, then this can be + # changed to add pthread to the very end of libswanted. + set `echo X "$libswanted "| sed -e 's/ c / pthread c /'` + shift + libswanted="$*" +fi |