Rombobjörn

summaryrefslogtreecommitdiff
path: root/build_milter_api.gpr.gp
diff options
context:
space:
mode:
authorBjörn Persson <bjorn@rombobjörn.se>2013-08-31 20:49:05 +0200
committerBjörn Persson <bjorn@rombobjörn.se>2013-08-31 20:49:05 +0200
commit023f206d598120748833a32fe5fff2a344f694d9 (patch)
tree3d8cc62fbbb37367e09cbf1ff72e4b65c9b3ebe0 /build_milter_api.gpr.gp
parenta3ee6036e606682587d52b6f70af9d1b4958b302 (diff)
Added LDFLAGS support in the build project.
Diffstat (limited to 'build_milter_api.gpr.gp')
-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