diff options
author | H.Merijn Brand <h.m.brand@xs4all.nl> | 2002-05-16 16:22:21 +0200 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-05-16 13:10:46 +0000 |
commit | 86c089c690ac36d1514bed39655e7fe276a62ef9 (patch) | |
tree | 5eb2c8dca329b701ae76c057b7547ab42f48ba7d /hints/aix.sh | |
parent | 8be2c24cbd54692e5e59180f37879acb5f5d795d (diff) | |
download | perl-86c089c690ac36d1514bed39655e7fe276a62ef9.tar.gz |
[ PATCH ] AIX 4.3 / gcc / threads
From: "H.Merijn Brand" <h.m.brand@hccnet.nl>
Message-Id: <20020516141856.6661.H.M.BRAND@hccnet.nl>
p4raw-id: //depot/perl@16625
Diffstat (limited to 'hints/aix.sh')
-rw-r--r-- | hints/aix.sh | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/hints/aix.sh b/hints/aix.sh index ef3ff0787b..da7a45619b 100644 --- a/hints/aix.sh +++ b/hints/aix.sh @@ -141,7 +141,12 @@ cc_type=xlc case "$cc" in *gcc*) cc_type=gcc - ccdlflags='-Xlinker' ;; + ccdlflags='-Xlinker' + if [ "X$gccversion" = "X" ]; then + # Done too late in Configure if hinted + gccversion=`$cc --version | sed 's/.*(GCC) *//` + fi + ;; *) ccversion=`lslpp -L | grep 'C for AIX Compiler$' | awk '{print $2}'` case "$ccversion" in '') ccversion=`lslpp -L | grep 'IBM C and C++ Compilers LUM$' | awk '{print $2}'` @@ -245,7 +250,20 @@ case "$usethreads" in $define|true|[yY]*) ccflags="$ccflags -DNEED_PTHREAD_INIT" case "$cc" in - gcc) ;; + *gcc*) +echo "GCC $gccversion disabling some _r functions" >&4 + case "$gccversion" in + 3*) d_drand48_r='undef' + d_endgrent_r='undef' + d_endpwent_r='undef' + d_getgrent_r='undef' + d_getpwent_r='undef' + d_random_r='undef' + d_srand48_r='undef' + d_strerror_r='undef' + ;; + esac + ;; cc_r) ;; cc|xl[cC]_r) echo >&4 "Switching cc to cc_r because of POSIX threads." @@ -254,9 +272,9 @@ $define|true|[yY]*) # --jhi@iki.fi cc=cc_r - case "`oslevel`" in - 4.2.1.*) i_crypt='undef' ;; - esac + case "`oslevel`" in + 4.2.1.*) i_crypt='undef' ;; + esac ;; '') cc=cc_r |