From 023f206d598120748833a32fe5fff2a344f694d9 Mon Sep 17 00:00:00 2001 From: Björn Persson Date: Sat, 31 Aug 2013 20:49:05 +0200 Subject: Added LDFLAGS support in the build project. --- build_milter_api.gpr.gp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3