26fdc47da7
Build libgfortran static library libcaf_single.a as a FAT 32/64 bit library. libgfortran/ChangeLog: 2020-08-17 David Edelsohn <dje.gcc@gmail.com> Clement Chigot <clement.chigot@atos.net> * config/t-aix: Add complementary mode object file to libcaf_single.a.
12 lines
670 B
Plaintext
12 lines
670 B
Plaintext
ifeq ($(MULTIBUILDTOP),)
|
|
BITS=$(shell if test -z "`$(CC) -x c -E /dev/null -g3 -o - | grep 64BIT`" ; then \
|
|
echo '64'; else echo '32'; fi)
|
|
#MAJOR=$(firstword $(subst :, ,$(libtool_VERSION)))
|
|
MAJOR=5
|
|
all-local:
|
|
ar -X$(BITS) rc .libs/$(PACKAGE).a ../ppc$(BITS)/$(PACKAGE)/.libs/$(PACKAGE).so.$(MAJOR)
|
|
ar -X$(BITS) rc ../pthread/$(PACKAGE)/.libs/$(PACKAGE).a ../pthread/ppc$(BITS)/$(PACKAGE)/.libs/$(PACKAGE).so.$(MAJOR)
|
|
ar -X$(BITS) rc .libs/libcaf_single.a ../ppc$(BITS)/$(PACKAGE)/.libs/$(libcaf_single_la_OBJECTS:.lo=.o)
|
|
ar -X$(BITS) rc ../pthread/$(PACKAGE)/.libs/libcaf_single.a ../pthread/ppc$(BITS)/$(PACKAGE)/.libs/$(libcaf_single_la_OBJECTS:.lo=.o)
|
|
endif
|