From d48570143656d1c570c282f8e21e058508910f3c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 17 Oct 2010 21:58:22 +1100 Subject: waf: automap shared library names from .so to the right extension this should help with MacOSX .dylib libraries --- buildtools/wafsamba/wscript | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'buildtools/wafsamba/wscript') diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript index e2b1a278dd..c46c486c12 100644 --- a/buildtools/wafsamba/wscript +++ b/buildtools/wafsamba/wscript @@ -280,7 +280,12 @@ def configure(conf): if 'HAVE_SYS_TIME_H' in conf.env and 'HAVE_TIME_H' in conf.env: conf.DEFINE('TIME_WITH_SYS_TIME', 1) - conf.define('SHLIBEXT', "so", quote=True) + # cope with different extensions for libraries + (root, ext) = os.path.splitext(conf.env.shlib_PATTERN) + if ext[0] == '.': + conf.define('SHLIBEXT', ext[1:], quote=True) + else: + conf.define('SHLIBEXT', "so", quote=True) conf.CHECK_CODE('long one = 1; return ((char *)(&one))[0]', execute=True, -- cgit