From a71a2c38e4659088f804607b3e98ae46ecec6263 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 13 Apr 2011 04:34:35 +0000 Subject: Link against -ldl. git-svn-id: http://svn.drobilla.net/lad/trunk/suil@3142 a436a847-0d15-0410-975c-d299462d15a1 --- wscript | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'wscript') 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', -- cgit v1.2.1