diff options
author | Clément Chigot <clement.chigot@atos.net> | 2020-07-16 11:29:49 +0200 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-07-23 14:26:36 -0700 |
commit | 83cc5e2b2f887d4bb2305658da382a65fdcaab29 (patch) | |
tree | 8df77f6a205ef2474f3d57434d7f5f9464a3a4dc /libgo/configure | |
parent | 8598657c607500512075f6c4ee3b10460c94903d (diff) |
libgo: add AIX FAT libraries support
AIX-style libraries contains both 32 and 64 bit shared objects.
This patch follows the adding of FAT libraries support in other gcc
libraries (libgcc, listdc++, etc).
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/242957
Diffstat (limited to 'libgo/configure')
-rwxr-xr-x | libgo/configure | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/libgo/configure b/libgo/configure index 2a9c7e61f63..67470acbadb 100755 --- a/libgo/configure +++ b/libgo/configure @@ -733,6 +733,7 @@ SED MAINT MAINTAINER_MODE_FALSE MAINTAINER_MODE_TRUE +AIX_DEFAULT_ARCH am__fastdepCCAS_FALSE am__fastdepCCAS_TRUE CCASDEPMODE @@ -4713,6 +4714,14 @@ case ${host} in # static hash tables crashes on AIX when libgo is built with O2 CFLAGS="$CFLAGS -fno-section-anchors" GOCFLAGS="$GOCFLAGS -fno-section-anchors" + + # Check default architecture for FAT library creation + if test -z "`$(CC) -x c -E /dev/null -g3 -o - | grep 64BIT`" ; then + AIX_DEFAULT_ARCH='64' + else + AIX_DEFAULT_ARCH='32' + fi + ;; esac @@ -11492,7 +11501,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11495 "configure" +#line 11602 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11598,7 +11607,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11601 "configure" +#line 11708 "configure" #include "confdefs.h" #if HAVE_DLFCN_H |