diff options
author | David Robillard <d@drobilla.net> | 2016-08-01 15:13:23 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-08-01 15:13:23 -0400 |
commit | 6f656dc9b5be2f33f519ec98e2f5ecaeea504997 (patch) | |
tree | f12240f18ea91c0e82e0c64b10d30832b43bbbc8 | |
parent | 2e82483c0fe9f88bb6f1ccd5ce6e74f9daad5aea (diff) | |
download | lilv-6f656dc9b5be2f33f519ec98e2f5ecaeea504997.tar.gz lilv-6f656dc9b5be2f33f519ec98e2f5ecaeea504997.tar.bz2 lilv-6f656dc9b5be2f33f519ec98e2f5ecaeea504997.zip |
Check for libdl
-rw-r--r-- | wscript | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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, [], |