summaryrefslogtreecommitdiffstats
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
parent59557e3c467d8c514700fe1b7bdfa3d4e472317c (diff)
downloadingen-21f582e584c98bdc06b4991062f8f55aa42b6ce8.tar.gz
ingen-21f582e584c98bdc06b4991062f8f55aa42b6ce8.tar.bz2
ingen-21f582e584c98bdc06b4991062f8f55aa42b6ce8.zip
Check for libdl
-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',