summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-11-26 18:51:55 +0000
committerDavid Robillard <d@drobilla.net>2011-11-26 18:51:55 +0000
commitff2c63e5b454026b61918c9a34dc4f8857f75edd (patch)
tree0710cd3c9db7b324fb7179c18a8d93231286bce7 /wscript
parent539208615d6daeb18ff6e47ca2a9b0662dfc0765 (diff)
downloadlilv-ff2c63e5b454026b61918c9a34dc4f8857f75edd.tar.gz
lilv-ff2c63e5b454026b61918c9a34dc4f8857f75edd.tar.bz2
lilv-ff2c63e5b454026b61918c9a34dc4f8857f75edd.zip
Use lib instead of linkflags (#787).
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3644 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript12
1 files changed, 6 insertions, 6 deletions
diff --git a/wscript b/wscript
index 729541a..3dee8e0 100644
--- a/wscript
+++ b/wscript
@@ -158,13 +158,13 @@ def build(bld):
src/zix/tree.c
'''.split()
- linkflags = [ '-ldl' ]
+ lib = [ 'dl' ]
libflags = [ '-fvisibility=hidden' ]
if sys.platform == 'win32':
- linkflags = []
+ lib = []
libflags = []
elif sys.platform.find('bsd') > 0:
- linkflags = []
+ lib = []
# Shared Library
obj = bld(features = 'c cshlib',
@@ -177,7 +177,7 @@ def build(bld):
install_path = '${LIBDIR}',
cflags = libflags + [ '-DLILV_SHARED',
'-DLILV_INTERNAL' ],
- linkflags = linkflags)
+ lib = lib)
autowaf.use_lib(bld, obj, 'SORD LV2CORE')
# Static library
@@ -203,7 +203,7 @@ def build(bld):
install_path = '',
cflags = [ '-fprofile-arcs', '-ftest-coverage',
'-DLILV_INTERNAL' ],
- linkflags = linkflags + ['-lgcov'])
+ lib = lib + ['gcov'])
autowaf.use_lib(bld, obj, 'SORD LV2CORE')
# Unit test program
@@ -212,7 +212,7 @@ def build(bld):
includes = ['.', './src'],
use = 'liblilv_profiled',
uselib = 'SORD LV2CORE',
- linkflags = linkflags + ['-lgcov'],
+ lib = lib + ['gcov'],
target = 'test/lilv_test',
install_path = '',
cflags = [ '-fprofile-arcs', '-ftest-coverage' ])