Description: allow customization of LDLFAGS
Author: Jakub Wilk <jwilk@debian.org>
Last-Update: 2012-04-21

--- a/SConstruct
+++ b/SConstruct
@@ -38,6 +38,7 @@
 opts = Variables('custom.py')
 opts.Add('opt', 'Compiler flags for optimization/debugging', "-g -O3 -fPIC")
 opts.Add('warn', 'Compiler flags for warnings', "-Wall -D__warn_unused_result__=__far__")
+opts.Add('ldflags', 'Linker flags', "")
 opts.Add('prefix', 'The installation root for iulib', "/usr/local")
 opts.Add('libdir', 'The library directory', "${prefix}/lib")
 opts.Add('soversion', 'SOVERSION of the shared library', '')
@@ -50,6 +51,7 @@
 # opts.Add(BoolVariable('style', 'Check style', "no"))
 
 env = Environment(options=opts, CXXFLAGS=["${opt}","${warn}"])
+env.Append(LINKFLAGS="${ldflags}")
 Help(opts.GenerateHelpText(env))
 
 conf = Configure(env)
