diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1999-07-05 17:17:22 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-07-05 17:17:22 +0000 |
commit | 5b877257c279c72efd65c092c32959c904c739e8 (patch) | |
tree | 919d1549e2e3b64da1557bebdfff999658705550 /hints/aix.sh | |
parent | 049fc1c86dccf1e1a1afcb2acb4ac5e1259cf74b (diff) | |
download | perl-5b877257c279c72efd65c092c32959c904c739e8.tar.gz |
AIX threaded build, plus few more on the side.
p4raw-id: //depot/cfgperl@3592
Diffstat (limited to 'hints/aix.sh')
-rw-r--r-- | hints/aix.sh | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/hints/aix.sh b/hints/aix.sh index 581141d129..fcf4adbfa1 100644 --- a/hints/aix.sh +++ b/hints/aix.sh @@ -106,10 +106,10 @@ esac # symbol: boot_$(EXP) can it be auto-generated? case "$osvers" in 3*) - lddlflags="$lddlflags -H512 -T512 -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -e _nostart" + lddlflags="$lddlflags -H512 -T512 -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -e _nostart -lc" ;; *) - lddlflags="$lddlflags -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -b noentry" + lddlflags="$lddlflags -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -b noentry -lc" ;; esac @@ -161,8 +161,6 @@ for arg in $ccflags ; do done -lddllibc="-lc" - # This script UU/usethreads.cbu will get 'called-back' by Configure # after it has prompted the user for whether to use threads. cat > UU/usethreads.cbu <<'EOCBU' @@ -192,11 +190,12 @@ EOM ;; esac - # Add the POSIX threads library and the re-entrant libc. - - lddllibc="-lpthreads -lc_r" + # Add the POSIX threads library and the re-entrant libc to lddflags. + set `echo X "$lddlflags"| sed -e 's/ -lc$/ -lpthreads -lc_r/'` + shift + lddlflags="$*" - # Add the c_r library to the list of wanted libraries. + # Add the POSIX threads library and the re-entrant libc to libswanted. # Make sure the c_r library is before the c library or # make will fail. set `echo X "$libswanted "| sed -e 's/ c / pthreads c_r /'` @@ -204,11 +203,8 @@ EOM libswanted="$*" ;; esac - EOCBU -lddlflags="$lddlflags $lddllibc" - # This script UU/use64bits.cbu will get 'called-back' by Configure # after it has prompted the user for whether to use 64 bits. cat > UU/use64bits.cbu <<'EOCBU' @@ -232,3 +228,5 @@ EOM ;; esac EOCBU + +# EOF |