Bug#687642: gnat-4.6: libgnarl-4.6.a should be rebuilt with -fPIC, libaws FBTFS
Package: gnat-4.6
Version: 4.6.4-1
Followup-For: Bug #687642
Control: retitle -1 gnat-4.6: on armel armhf, gcc -shared reads libgnarl-4.6.a instead of .so
Hello. Here is a reproducer, tested on abel.debian.org (armel).
The bug may present other symptoms: ld will complain about missing
symbols, because .a does not embed the name of its own dependencies.
#!/bin/sh
cat > tmp.ads <<EOF
with Ada.Task_Identification; use Ada.Task_Identification;
package Tmp is
T : Task_Id := Current_Task;
end Tmp;
EOF
gcc-4.6 -c -fPIC -I- -gnatA tmp.ads
gcc-4.6 -shared -o libtmp.so.1 -L/usr/lib/gcc/arm-linux-gnueabi/4.6/adalib -Wl,-z,defs -Wl,-soname,libtmp.so.1 tmp.o -lgnarl-4.6 -lgnat-4.6
Reply to: