Package: src:libgtkada
Followup-For: Bug #695055
Inside the build log from the initial report, the line starting with
"gcc -shared" mentions "-lgnat4.6" before the objects needing its
symbols. This explains why the build fails when the --as-needed linker
option is activated or is the default.
This is reported and patched as #705812 on gprbuild. I guess that the
architectures failing to build gtkada rely on on the correct order for
-l options, and will succeed once gprbuild is patched (#705812).
Here is a correct code failing on amd64.
$ mkdir lib
$ cat lib.ads <<EOF
with Ada.Numerics.Generic_Elementary_Functions;
package Lib is new Ada.Numerics.Generic_Elementary_Functions (Float);
EOF
$ cat proj.gpr <<EOF
project Proj is
for Library_Name use "lib";
for Library_Version use "lib.so.1";
for Library_Kind use "dynamic";
for Source_Dirs use (".");
for Library_Dir use "lib";
for Leading_Library_Options use ("-Wl,--as-needed", "-Wl,-z,defs");
end Proj;
EOF
$ gprbuild -v
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]