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/Makefile.in | |
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/Makefile.in')
-rw-r--r-- | libgo/Makefile.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libgo/Makefile.in b/libgo/Makefile.in index b2712eba971..5cb44841c78 100644 --- a/libgo/Makefile.in +++ b/libgo/Makefile.in @@ -377,6 +377,7 @@ CTAGS = ctags CSCOPE = cscope DIST_SUBDIRS = testsuite ACLOCAL = @ACLOCAL@ +AIX_DEFAULT_ARCH = @AIX_DEFAULT_ARCH@ ALLGOARCH = @ALLGOARCH@ ALLGOARCHFAMILY = @ALLGOARCHFAMILY@ ALLGOOS = @ALLGOOS@ @@ -1160,6 +1161,9 @@ MULTIDIRS = MULTISUBDIR = MULTIDO = true MULTICLEAN = true +@LIBGO_IS_AIX_FALSE@ALL_LOCAL_DEPS = +@LIBGO_IS_AIX_TRUE@ALL_LOCAL_DEPS = add-aix-fat-library +MAJOR = $(firstword $(subst :, ,$(libtool_VERSION))) all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive @@ -3080,6 +3084,12 @@ mostlyclean-local: mostlyclean-multi clean-local: clean-multi distclean-local: distclean-multi maintainer-clean-local: maintainer-clean-multi +all-local: $(ALL_LOCAL_DEPS) +add-aix-fat-library: all-multi + @if test "$(MULTIBUILDTOP)" = ""; then \ + ${AR} -X$(AIX_DEFAULT_ARCH) rc .libs/$(PACKAGE).a ../ppc$(AIX_DEFAULT_ARCH)/$(PACKAGE)/.libs/$(PACKAGE).so.$(MAJOR); \ + ${AR} -X$(AIX_DEFAULT_ARCH) rc ../pthread/$(PACKAGE)/.libs/$(PACKAGE).a ../pthread/ppc$(AIX_DEFAULT_ARCH)/$(PACKAGE)/.libs/$(PACKAGE).so.$(MAJOR); \ + fi # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. |