summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-13 04:34:35 +0000
committerDavid Robillard <d@drobilla.net>2011-04-13 04:34:35 +0000
commita71a2c38e4659088f804607b3e98ae46ecec6263 (patch)
tree9e2eb3c6d64b9dac1b5cc7cf3389b5908656b587 /wscript
parentebeb8cb225def551b8cc744d47c1ae21cf8d33a7 (diff)
downloadsuil-a71a2c38e4659088f804607b3e98ae46ecec6263.tar.gz
suil-a71a2c38e4659088f804607b3e98ae46ecec6263.tar.bz2
suil-a71a2c38e4659088f804607b3e98ae46ecec6263.zip
Link against -ldl.
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@3142 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript11
1 files changed, 9 insertions, 2 deletions
diff --git a/wscript b/wscript
index b431810..a461faa 100644
--- a/wscript
+++ b/wscript
@@ -1,6 +1,7 @@
#!/usr/bin/env python
import os
import subprocess
+import sys
from waflib.extras import autowaf as autowaf
import waflib.Logs as Logs, waflib.Options as Options
@@ -59,7 +60,12 @@ def build(bld):
# Pkgconfig file
autowaf.build_pc(bld, 'SUIL', SUIL_VERSION, [])
- cflags = [ '-fvisibility=hidden', '-DSUIL_SHARED', '-DSUIL_INTERNAL' ]
+ cflags = [ '-DSUIL_SHARED',
+ '-DSUIL_INTERNAL' ]
+ linkflags = []
+ if sys.platform != 'win32':
+ cflags += [ '-fvisibility=hidden' ]
+ linkflags += [ '-ldl' ]
# Library
obj = bld(features = 'c cshlib',
@@ -70,7 +76,8 @@ def build(bld):
name = 'libsuil',
vnum = SUIL_LIB_VERSION,
install_path = '${LIBDIR}',
- cflags = cflags)
+ cflags = cflags,
+ linkflags = linkflags)
if bld.is_defined('HAVE_GTK2') and bld.is_defined('HAVE_QT4'):
obj = bld(features = 'cxx cxxshlib',