Re: [PATCH] aix: remove libgomp and libatomic archives before creating FAT archives
It also is confusing for the patch to perform $(ARX) -X32_64 when immediately before the fragment created ARX by explicitly stripping -X32_64. If it's going to perform ar -X32_64 it should use the normal $(AR) variable. Thanks, David On Thu, Oct 8, 2020 at 5:06 AM CHIGOT, CLEMENT wrote: > > libgomp and libatomic might be in use during the build. Thus, ar commands > will failed to add new objetcs to it as the file is considered busy. > Deleting it and recreating it with both architectures fixes that. > > libatomic/Changelog: > 2020-08-17 Clement Chigot > * config/t-aix: Deleting libatomic before creating FAT library. > > libgomp/Changelog: > 2020-08-17 Clement Chigot > * config/t-aix: Deleting libgomp before creating FAT library. > > > Clément Chigot > ATOS Bull SAS > 1 rue de Provence - 38432 Échirolles - France >
Re: [PATCH] aix: remove libgomp and libatomic archives before creating FAT archives
This solution doesn't really appeal to me, but there aren't any good options. AIX caches shared objects in memory for faster startup. If the archive file permissions do not include read-other (world readable), the shared object is not cached. But using this option might cause permission problems at installation. One would need to juggle file permissions during the build. The AIX slibclean command will clear all cached shared objects, but it requires root privileges and is a global action. - David On Thu, Oct 8, 2020 at 5:06 AM CHIGOT, CLEMENT wrote: > > libgomp and libatomic might be in use during the build. Thus, ar commands > will failed to add new objetcs to it as the file is considered busy. > Deleting it and recreating it with both architectures fixes that. > > libatomic/Changelog: > 2020-08-17 Clement Chigot > * config/t-aix: Deleting libatomic before creating FAT library. > > libgomp/Changelog: > 2020-08-17 Clement Chigot > * config/t-aix: Deleting libgomp before creating FAT library. > > > Clément Chigot > ATOS Bull SAS > 1 rue de Provence - 38432 Échirolles - France >
[PATCH] aix: remove libgomp and libatomic archives before creating FAT archives
libgomp and libatomic might be in use during the build. Thus, ar commands will failed to add new objetcs to it as the file is considered busy. Deleting it and recreating it with both architectures fixes that. libatomic/Changelog: 2020-08-17 Clement Chigot * config/t-aix: Deleting libatomic before creating FAT library. libgomp/Changelog: 2020-08-17 Clement Chigot * config/t-aix: Deleting libgomp before creating FAT library. Clément Chigot ATOS Bull SAS 1 rue de Provence - 38432 Échirolles - France 0001-aix-remove-libgomp-and-libatomic-archives-before-cre.patch Description: 0001-aix-remove-libgomp-and-libatomic-archives-before-cre.patch