summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-08-01 15:13:04 -0400
committerDavid Robillard <d@drobilla.net>2016-08-01 15:13:04 -0400
commit21f582e584c98bdc06b4991062f8f55aa42b6ce8 (patch)
treee20a2f20847276a68b9ce5b90d9121f1e730d09c /src
parent59557e3c467d8c514700fe1b7bdfa3d4e472317c (diff)
downloadingen-21f582e584c98bdc06b4991062f8f55aa42b6ce8.tar.gz
ingen-21f582e584c98bdc06b4991062f8f55aa42b6ce8.tar.bz2
ingen-21f582e584c98bdc06b4991062f8f55aa42b6ce8.zip
Check for libdl
Diffstat (limited to 'src')
-rw-r--r--src/wscript8
1 files changed, 6 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')