diff options
author | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1997-10-02 16:58:47 +0000 |
---|---|---|
committer | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1997-10-02 16:58:47 +0000 |
commit | b981e18eed642fda0e5e9d3395495003bfc2f8fd (patch) | |
tree | 390dcedf386d532ea79208d1d758739a8fabcbfc /hints/solaris_2.sh | |
parent | 3d5dd49f6fd6a17df0d459462f84e0df03c9de63 (diff) | |
download | perl-b981e18eed642fda0e5e9d3395495003bfc2f8fd.tar.gz |
Configure -Dusethreads hints for dec_osf and solaris_2 and
fix sv_bless3 prototype.
p4raw-id: //depot/perl@96
Diffstat (limited to 'hints/solaris_2.sh')
-rw-r--r-- | hints/solaris_2.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh index d2124edb06..21593f132f 100644 --- a/hints/solaris_2.sh +++ b/hints/solaris_2.sh @@ -223,6 +223,18 @@ esac # as --version or ld --version might dump core. rm -f core +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 + # This is just a trick to include some useful notes. cat > /dev/null <<'End_of_Solaris_Notes' |