summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/wscript8
-rw-r--r--wscript4
2 files changed, 10 insertions, 2 deletions
diff --git a/src/wscript b/src/wscript
index 7fcf7e30..18340c80 100644
--- a/src/wscript
+++ b/src/wscript
@@ -22,6 +22,10 @@ def build(bld):
if bld.is_defined('HAVE_SOCKET'):
sources += [ 'SocketReader.cpp', 'SocketWriter.cpp' ]
+ lib = []
+ if bld.is_defined('HAVE_LIBDL'):
+ lib += ['dl']
+
obj = bld(features = 'cxx cxxshlib',
source = sources,
export_includes = ['..'],
@@ -30,7 +34,7 @@ def build(bld):
target = 'ingen',
vnum = '0.0.0',
install_path = '${LIBDIR}',
- lib = ['dl'],
+ lib = lib,
cxxflags = bld.env.PTHREAD_CFLAGS,
linkflags = bld.env.PTHREAD_LINKFLAGS)
autowaf.use_lib(bld, obj, 'GLIBMM LV2 LILV RAUL SERD SORD SRATOM')
@@ -43,7 +47,7 @@ def build(bld):
name = 'libingen_profiled',
target = 'ingen_profiled',
install_path = '',
- lib = ['dl'],
+ lib = lib,
cxxflags = bld.env.PTHREAD_CFLAGS + bld.env.INGEN_TEST_CXXFLAGS,
linkflags = bld.env.PTHREAD_LINKFLAGS + bld.env.INGEN_TEST_LINKFLAGS)
autowaf.use_lib(bld, obj, 'GLIBMM LV2 LILV RAUL SERD SORD SRATOM')
diff --git a/wscript b/wscript
index 811465f7..72d08735 100644
--- a/wscript
+++ b/wscript
@@ -98,6 +98,10 @@ def configure(conf):
define_name = 'HAVE_VASPRINTF',
mandatory = False)
+ conf.check(define_name = 'HAVE_LIBDL',
+ lib = 'dl',
+ mandatory = False)
+
if not Options.options.no_socket:
conf.check(function_name = 'socket',
header_name = 'sys/socket.h',