summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-02-03 02:32:26 +0000
committerDavid Robillard <d@drobilla.net>2013-02-03 02:32:26 +0000
commitcb4920ac71c3fbbb25e284e031f59d52cc03edb2 (patch)
treedfae23b1534ab92ed947f86967f551bdc400e4a5 /wscript
parent0bfb8cc32465817c79c4e288d1f65506b1325bc1 (diff)
downloadsuil-cb4920ac71c3fbbb25e284e031f59d52cc03edb2.tar.gz
suil-cb4920ac71c3fbbb25e284e031f59d52cc03edb2.tar.bz2
suil-cb4920ac71c3fbbb25e284e031f59d52cc03edb2.zip
Fix compilation on BSD.
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@5035 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript9
1 files changed, 7 insertions, 2 deletions
diff --git a/wscript b/wscript
index 14a68ec..00313e2 100644
--- a/wscript
+++ b/wscript
@@ -9,7 +9,7 @@ import waflib.extras.autowaf as autowaf
# major increment <=> incompatible changes
# minor increment <=> compatible changes (additions)
# micro increment <=> no interface changes
-SUIL_VERSION = '0.6.10'
+SUIL_VERSION = '0.6.11'
SUIL_MAJOR_VERSION = '0'
# Mandatory waf variables
@@ -67,6 +67,10 @@ def configure(conf):
autowaf.check_pkg(conf, 'QtGui', uselib_store='QT4',
atleast_version='4.0.0', mandatory=False)
+ conf.check_cc(define_name = 'HAVE_LIBDL',
+ lib = 'dl',
+ mandatory = False)
+
autowaf.define(conf, 'SUIL_VERSION', SUIL_VERSION)
autowaf.define(conf, 'SUIL_MODULE_DIR',
conf.env.LIBDIR + '/suil-' + SUIL_MAJOR_VERSION)
@@ -113,7 +117,8 @@ def build(bld):
modlib += ['user32']
else:
cflags += ['-fvisibility=hidden']
- lib += ['dl']
+ if bld.is_defined('HAVE_LIBDL'):
+ lib += ['dl']
module_dir = '${LIBDIR}/suil-' + SUIL_MAJOR_VERSION