Rombobjörn

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build_system_log.gpr5
1 files changed, 5 insertions, 0 deletions
diff --git a/build_system_log.gpr b/build_system_log.gpr
index aa11b91..009dbaf 100644
--- a/build_system_log.gpr
+++ b/build_system_log.gpr
@@ -34,4 +34,9 @@ library project Build_System_Log is
for Default_Switches ("Ada") use ("-a");
end Binder;
+ -- Use any linker options that LDFLAGS might contain. This is necessary
+ -- because Gnatmake and GPRbuild lack a command line separator for shared
+ -- library linker options.
+ for Library_Options use external_as_list("LDFLAGS", " ");
+
end Build_System_Log;