libtool/libtool-2.4.6-disable_non-pic_arm.patch
Frederic Berat b8c17a83ad Use make macros
https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
Based on work from Tom Stellard <tstellar@redhat.com> and
Timm Bäder <tbaeder@redhat.com>.

This commit showed that "-fPIC" added to CFLAGS unconditionally actually
invalidated the "non-PIC" test.
As the flag got removed, the test had to be disabled on ARM.
Please refer to the following ticket regarding non-PIC support on ARM:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.4/+bug/503448

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2022-02-03 11:22:49 +01:00

17 lines
527 B
Diff

diff -r -U5 libtool-2.4.6.old/tests/demo.at libtool-2.4.6/tests/demo.at
--- libtool-2.4.6.old/tests/demo.at 2022-01-31 22:15:48.539557030 +0100
+++ libtool-2.4.6/tests/demo.at 2022-02-01 09:43:30.262092074 +0100
@@ -508,11 +508,11 @@
## ----------- ##
AT_SETUP([force non-PIC objects])
AT_CHECK([case $host in
-hppa*|x86_64*|s390*)
+hppa*|x86_64*|s390*|arm*)
# These hosts cannot use non-PIC shared libs
exit 77 ;;
*-solaris*|*-sunos*)
# Libtool does not build non-PIC shared libs on these hosts
exit 77 ;;