diff options
author | David Robillard <d@drobilla.net> | 2013-02-03 02:32:26 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-02-03 02:32:26 +0000 |
commit | cb4920ac71c3fbbb25e284e031f59d52cc03edb2 (patch) | |
tree | dfae23b1534ab92ed947f86967f551bdc400e4a5 | |
parent | 0bfb8cc32465817c79c4e288d1f65506b1325bc1 (diff) | |
download | suil-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
-rw-r--r-- | NEWS | 6 | ||||
-rw-r--r-- | wscript | 9 |
2 files changed, 13 insertions, 2 deletions
@@ -1,3 +1,9 @@ +suil (0.6.11) unstable; + + * Fix compilation on BSD + + -- David Robillard <d@drobilla.net> Sat, 02 Feb 2013 21:31:54 -0500 + suil (0.6.10) stable; * Downgrade to waf 1.7.5, previous version does not build modules due to @@ -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 |