summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-07-25 10:12:07 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-07-25 10:12:07 +0000
commitdd4e71fdc0d3da1d09384ab498212866e7d17b94 (patch)
tree4032fb678c222f4794b17f681b6b97981ee271aa /hints
parentd6baa26853688ee48d9dcc6e69f5688f433cefe8 (diff)
downloadperl-dd4e71fdc0d3da1d09384ab498212866e7d17b94.tar.gz
Circumcode a strange shell(?) bug in AIX found
while trying to do -Duse64bits (which I couldn't do in the end because the CPU isn't 64-bit in that box, but at least now the probing doesn't crash.) p4raw-id: //depot/cfgperl@3731
Diffstat (limited to 'hints')
-rw-r--r--hints/aix.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/hints/aix.sh b/hints/aix.sh
index 2bd092da11..9b155e7bdf 100644
--- a/hints/aix.sh
+++ b/hints/aix.sh
@@ -185,8 +185,19 @@ EOM
esac
ccflags="$ccflags `getconf XBS5_LPBIG_OFFBIG_CFLAGS`"
ccflags="$ccflags -DUSE_LONG_LONG"
+
ldflags="$ldflags `getconf XBS5_LPBIG_OFFBIG_LDFLAGS`"
- libswanted="$libswanted `getconf XBS5_LPBIG_OFFBIG_LIBS`"
+ # _Somehow_ in AIX 4.3.1.0 the above getconf call manages to
+ # insert(?) *something* to $ldflags so that later (in Configure) evaluating
+ # $ldflags causes a newline after the '-b64' (the result of the getconf).
+ # Try it out: just uncomment the below line and rerun Configure:
+# echo >& "AIX $ldflags mystery" ; exit 1
+ # Just don't ask me how AIX does it.
+ # Therefore the line re-evaluating ldflags: it seems to drop the whatever
+ # AIX managed to break. --jhi
+ ldflags="`echo $ldflags`"
+
+ libswanted="$libswanted `getconf XBS5_LPBIG_OFFBIG_LIBS|sed -e 's@^-l@@' -e 's@ -l@ @g'`"
# When a 64-bit cc becomes available $archname64
# may need setting so that $archname gets it attached.
;;