Rombobjörn

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build_milter_api.gpr.gp5
1 files changed, 4 insertions, 1 deletions
diff --git a/build_milter_api.gpr.gp b/build_milter_api.gpr.gp
index eb17f2c..e204191 100644
--- a/build_milter_api.gpr.gp
+++ b/build_milter_api.gpr.gp
@@ -48,7 +48,10 @@ library project Build_Milter_API is
end Binder;
-- libadamilter shall link to libmilter.
- for Library_Options use ("-lmilter");
+ -- Also 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", " ") & ("-lmilter");
#if Wrap_Threads then
package Linker is