* [PATCH, libgfortran] aix: Fix building fat library for AIX
@ 2024-05-06 15:22 David Edelsohn
2024-05-06 17:02 ` FX Coudert
0 siblings, 1 reply; 2+ messages in thread
From: David Edelsohn @ 2024-05-06 15:22 UTC (permalink / raw)
To: FX, GCC Patches, Fortran List
[-- Attachment #1: Type: text/plain, Size: 2128 bytes --]
aix: Fix building fat library for AIX
With the change in subdirectories, the code for libgfortran fat
libraries
needs to be adjusted to explicitly reference the subdirectory. AIX
creates fat library archives and the compiler itself can be built as
either 32 bit or 64 bit application and default code generation. For
the two, alternate versions of the compiler to interoperate, GCC needs
to construct the fat libraries manually.
The Makefile fragment had been trying to leverage as much of the
existing
targets and macros as possible. With the subdirectory change, the
location of single.o is more obscured and cannot be determined without
libtool. This patch references the location of the real object file
more explicitly.
Utilizing subst seems like overkill and unnecessary obscuration for a
single
object file. Either way, it's digging below the libtool abstraction
layer.
This also fixes Fortran bootstrap on AIX.
Bootstrapped on powerpc-ibm-aix7.3.0.0
libgfortran/ChangeLog:
* config/t-aix (all-local, libcaf_single): Explicitly reference
caf/.libs/single.o
diff --git a/libgfortran/config/t-aix b/libgfortran/config/t-aix
index 0e50501d10e..099fc5d8b3a 100644
--- a/libgfortran/config/t-aix
+++ b/libgfortran/config/t-aix
@@ -7,6 +7,6 @@ ARX=$(shell echo $(AR) | sed -e 's/-X[^ ]*//g')
all-local:
$(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)
- $(ARX) -X$(BITS) rc .libs/libcaf_single.a
../ppc$(BITS)/$(PACKAGE)/.libs/$(libcaf_single_la_OBJECTS:.lo=.o)
- $(ARX) -X$(BITS) rc ../pthread/$(PACKAGE)/.libs/libcaf_single.a
../pthread/ppc$(BITS)/$(PACKAGE)/.libs/$(libcaf_single_la_OBJECTS:.lo=.o)
+ $(ARX) -X$(BITS) rc .libs/libcaf_single.a
../ppc$(BITS)/$(PACKAGE)/caf/.libs/single.o
+ $(ARX) -X$(BITS) rc ../pthread/$(PACKAGE)/.libs/libcaf_single.a
../pthread/ppc$(BITS)/$(PACKAGE)/caf/.libs/single.o
endif
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH, libgfortran] aix: Fix building fat library for AIX
2024-05-06 15:22 [PATCH, libgfortran] aix: Fix building fat library for AIX David Edelsohn
@ 2024-05-06 17:02 ` FX Coudert
0 siblings, 0 replies; 2+ messages in thread
From: FX Coudert @ 2024-05-06 17:02 UTC (permalink / raw)
To: David Edelsohn; +Cc: GCC Patches, Fortran List
> libgfortran/ChangeLog:
> * config/t-aix (all-local, libcaf_single): Explicitly reference
> caf/.libs/single.o
OK, and sorry for the breakage.
FX
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-05-06 17:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-06 15:22 [PATCH, libgfortran] aix: Fix building fat library for AIX David Edelsohn
2024-05-06 17:02 ` FX Coudert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).