summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-08-01 15:13:23 -0400
committerDavid Robillard <d@drobilla.net>2016-08-01 15:13:23 -0400
commit6f656dc9b5be2f33f519ec98e2f5ecaeea504997 (patch)
treef12240f18ea91c0e82e0c64b10d30832b43bbbc8 /wscript
parent2e82483c0fe9f88bb6f1ccd5ce6e74f9daad5aea (diff)
downloadlilv-6f656dc9b5be2f33f519ec98e2f5ecaeea504997.tar.gz
lilv-6f656dc9b5be2f33f519ec98e2f5ecaeea504997.tar.bz2
lilv-6f656dc9b5be2f33f519ec98e2f5ecaeea504997.zip
Check for libdl
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, [],