diff options
author | H.Merijn Brand <h.m.brand@xs4all.nl> | 2017-10-14 15:55:08 +0200 |
---|---|---|
committer | H.Merijn Brand <h.m.brand@xs4all.nl> | 2017-10-14 15:55:08 +0200 |
commit | 1444f7108081b769dde07c1c68c06ee4e7bb93c0 (patch) | |
tree | 601cd481f3e0cfdafbd1e7e21ca027167af88909 /hints | |
parent | 9fd4c1bcfbc847bafd31316f97422ed641b38af0 (diff) | |
download | perl-1444f7108081b769dde07c1c68c06ee4e7bb93c0.tar.gz |
g++ is like gcc on AIX too
note that we cannot use g*, as AIX/vac ships gxlc as xlc with gcc-like
option handling
Diffstat (limited to 'hints')
-rw-r--r-- | hints/aix.sh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/hints/aix.sh b/hints/aix.sh index 3c606c60e9..4db516688f 100644 --- a/hints/aix.sh +++ b/hints/aix.sh @@ -94,7 +94,7 @@ cc=${cc:-cc} ccflags="$ccflags -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE" case "$cc" in - *gcc*) ;; + *gcc*|*g++*) ;; *) ccflags="$ccflags -qmaxmem=-1 -qnoansialias -qlanglvl=extc99" ;; esac nm_opt='-B' @@ -109,7 +109,7 @@ d_setreuid='undef' cccdlflags='none' # All AIX code is position independent cc_type=xlc # do not export to config.sh case "$cc" in - *gcc*) + *gcc*|*g++*) cc_type=gcc ccdlflags='-Xlinker' if [ "X$gccversion" = "X" ]; then @@ -189,7 +189,7 @@ case $cc_type in esac case "$cc" in - *gcc*) ;; + *gcc*|*g++*) ;; cc*|xlc*) # cc should've been set by line 116 or so if empty. if test ! -x /usr/bin/$cc -a -x /usr/vac/bin/$cc; then @@ -238,7 +238,7 @@ case "$usethreads" in ccflags="$ccflags -DNEED_PTHREAD_INIT" case "$cc" in - *gcc*) + *gcc*|*g++*) ccflags="-D_THREAD_SAFE $ccflags" ;; cc_r) @@ -429,7 +429,7 @@ EOM ccflags="`echo $ccflags | sed -e 's@-q32@@'`" ldflags="`echo $ldflags | sed -e 's@-b32@@'`" case "$cc" in - *gcc*) + *gcc*|*g++*) ccflags="`echo $ccflags | sed -e 's@-q64@-maix64@'`" ccflags_uselargefiles="`echo $ccflags_uselargefiles | sed -e 's@-q64@-maix64@'`" qacflags="`echo $qacflags | sed -e 's@-q64@-maix64@'`" @@ -474,8 +474,8 @@ if test $usenativedlopen = 'true' ; then # libraries. AIX allows both .so and .a libraries to # contain dynamic shared objects. case "$cc" in - *gcc*) ldflags="$ldflags -Wl,-brtl -Wl,-bdynamic" ;; - *) ldflags="$ldflags -brtl -bdynamic" ;; + *gcc*|*g++*) ldflags="$ldflags -Wl,-brtl -Wl,-bdynamic" ;; + *) ldflags="$ldflags -brtl -bdynamic" ;; esac elif test -f /lib/libC.a -a X"`$cc -v 2>&1 | grep gcc`" = X; then # If the C++ libraries, libC and libC_r, are available we will |