Attached is a patch by Michael Kostylev to fix both the 64-bit
and shared library build support for gcc on AIX (currently tested
with gcc 4.8.1 configured to use the AIX assembler and linker).
It builds successfully now, but fails the same tests as the 32-bit
version, plus a number of AAC tests.
This might be better split into 2 patches, one for the linker options
and the other for the assembler default, since they fix separate but
inter-related issues.`
Adding -Xany to the 'ar' command works, but I'd rather we had a way
to add -X64 on 64-bit builds only. I don't think configure is aware
of the toolchain bitness as this point in the script though.
>From ar(1):
-X mode
Specifies the type of object file ar should examine. The mode must
be one of the following:
32
Processes only 32-bit object files
64
Processes only 64-bit object files
32_64
Processes both 32-bit and 64-bit object files
d64
Examines discontinued 64-bit XCOFF files (magic number ==
U803XTOCMAGIC).
any
Processes all of the supported object files.
The default is to process 32-bit object files (ignore 64-bit
objects). The mode can also be set with the
OBJECT_MODE environment variable. For example, OBJECT_MODE=64
causes ar to process any 64-bit objects and
ignore 32-bit objects. The -X flag overrides the OBJECT_MODE
variable.
There is also still some work to be done, as there are still linker
warnings present on the build, and I can spot some flags that configure
is adding incorrectly to LDFLAGS at the very least.
-- Sean McG.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel