1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
Description: move LDFLAGS before -l options
For example --as-needed affects only following -l options.
Author: Nicolas Boulenguez <nicolas@debian.org>
--- a/templates_parser.gpr
+++ b/templates_parser.gpr
@@ -32,7 +32,8 @@
case TP_Shared.Library_Type is
when "relocatable" =>
- for Library_Options use TP_Shared.Ldflags;
+ -- Put LDFLAGS first so that they affect all libraries.
+ for Leading_Library_Options use TP_Shared.Ldflags;
when others =>
null;
end case;
--- a/tp_shared.gpr
+++ b/tp_shared.gpr
@@ -89,7 +89,8 @@
------------
package Linker is
- for Default_Switches ("Ada") use Ldflags;
+ -- Put LDFLAGS first so that they affect local libraries.
+ for Leading_Switches ("Ada") use Ldflags;
end Linker;
---------
|