summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'wscript')
-rw-r--r--wscript10
1 files changed, 7 insertions, 3 deletions
diff --git a/wscript b/wscript
index 7387420..4f59d26 100644
--- a/wscript
+++ b/wscript
@@ -119,6 +119,10 @@ def configure(conf):
lib=['rt'],
mandatory=False)
+ conf.check_cc(define_name = 'HAVE_LIBDL',
+ lib = 'dl',
+ mandatory = False)
+
autowaf.define(conf, 'LILV_VERSION', LILV_VERSION)
if Options.options.dyn_manifest:
autowaf.define(conf, 'LILV_DYN_MANIFEST', 1)
@@ -212,16 +216,16 @@ def build(bld):
src/zix/tree.c
'''.split()
- lib = ['dl']
+ lib = []
libflags = ['-fvisibility=hidden']
defines = []
+ if bld.is_defined('HAVE_LIBDL'):
+ lib += ['dl']
if bld.env.DEST_OS == 'win32':
lib = []
if bld.env.MSVC_COMPILER:
libflags = []
defines = ['snprintf=_snprintf']
- elif bld.env.DEST_OS.find('bsd') > 0:
- lib = []
# Pkgconfig file
autowaf.build_pc(bld, 'LILV', LILV_VERSION, LILV_MAJOR_VERSION, [],