From 21f582e584c98bdc06b4991062f8f55aa42b6ce8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 1 Aug 2016 15:13:04 -0400 Subject: Check for libdl --- src/wscript | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') 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') -- cgit v1.2.1