diff options
author | Clément Chigot <clement.chigot@atos.net> | 2020-09-01 11:32:09 +0200 |
---|---|---|
committer | David Edelsohn <dje.gcc@gmail.com> | 2020-10-11 17:30:24 -0400 |
commit | 4eaf96c56c1c97b11af42a4caaa12b37870308d7 (patch) | |
tree | 4a276aa8e01e13a7c7cf3437f5befc6dff6ff7fb /libatomic | |
parent | 07c7498dc0379354d73ef4c8fd92d0473eb3a12f (diff) | |
download | gcc-4eaf96c56c1c97b11af42a4caaa12b37870308d7.zip gcc-4eaf96c56c1c97b11af42a4caaa12b37870308d7.tar.gz gcc-4eaf96c56c1c97b11af42a4caaa12b37870308d7.tar.bz2 |
aix: remove libgomp and libatomic archives before creating FAT archives
AIX caches shared objects in archives with read-other permission.
libgomp and libatomic might be in use during the build or testing, which
may cause archiver operations on them to fail. This patch adjusts the
Makefile fragments to delete the library archives before creating fresh
archives containing both the 32 bit and 64 bit shared objects.
libatomic/ChangeLog:
2020-10-11 Clement Chigot <clement.chigot@atos.net>
* config/t-aix: Delete and recreate libatomic before creating
FAT library.
libgomp/ChangeLog:
2020-10-11 Clement Chigot <clement.chigot@atos.net>
* config/t-aix: Delete and recreate libgomp before creating
FAT library.
Diffstat (limited to 'libatomic')
-rw-r--r-- | libatomic/config/t-aix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libatomic/config/t-aix b/libatomic/config/t-aix index 0860772..0e76b97 100644 --- a/libatomic/config/t-aix +++ b/libatomic/config/t-aix @@ -5,6 +5,9 @@ BITS=$(shell if test -z "`$(CC) -x c -E /dev/null -g3 -o - | grep 64BIT`" ; then MAJOR=1 ARX=$(shell echo $(AR) | sed -e 's/-X[^ ]*//g') all-local: + -rm -f .libs/$(PACKAGE).a ../pthread/$(PACKAGE)/.libs/$(PACKAGE).a + $(AR) rc .libs/$(PACKAGE).a .libs/$(PACKAGE).so.$(MAJOR) + $(AR) rc ../pthread/$(PACKAGE)/.libs/$(PACKAGE).a ../pthread/$(PACKAGE)/.libs/$(PACKAGE).so.$(MAJOR) $(ARX) -X$(BITS) rc .libs/$(PACKAGE).a ../ppc$(BITS)/$(PACKAGE)/.libs/$(PACKAGE).so.$(MAJOR) $(ARX) -X$(BITS) rc ../pthread/$(PACKAGE)/.libs/$(PACKAGE).a ../pthread/ppc$(BITS)/$(PACKAGE)/.libs/$(PACKAGE).so.$(MAJOR) endif |