diff options
author | Timur I. Bakeyev <timur@FreeBSD.org> | 2019-07-23 22:16:35 +0000 |
---|---|---|
committer | Timur I. Bakeyev <timur@FreeBSD.org> | 2019-07-23 22:16:35 +0000 |
commit | 5e4d5a50ce73bab94c7f9d050e89c8f95f313787 (patch) | |
tree | 1fc333ab234b4a255ef41b0bcdce89d92d935bfb /databases/ldb15/files/patch-buildtools_wafsamba_samba__autoconf.py | |
parent | Repocopy for ldb15 (diff) |
Forgot to commit the ldb15 out of the sudden...
Diffstat (limited to 'databases/ldb15/files/patch-buildtools_wafsamba_samba__autoconf.py')
-rw-r--r-- | databases/ldb15/files/patch-buildtools_wafsamba_samba__autoconf.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/databases/ldb15/files/patch-buildtools_wafsamba_samba__autoconf.py b/databases/ldb15/files/patch-buildtools_wafsamba_samba__autoconf.py new file mode 100644 index 000000000000..ee4f88b0a4da --- /dev/null +++ b/databases/ldb15/files/patch-buildtools_wafsamba_samba__autoconf.py @@ -0,0 +1,36 @@ +--- buildtools/wafsamba/samba_autoconf.py.orig 2019-03-21 10:12:32 UTC ++++ buildtools/wafsamba/samba_autoconf.py +@@ -573,7 +573,7 @@ def library_flags(self, libs): + + + @conf +-def CHECK_LIB(conf, libs, mandatory=False, empty_decl=True, set_target=True, shlib=False): ++def CHECK_LIB(conf, libs, mandatory=False, empty_decl=True, set_target=True, shlib=False, msg=None): + '''check if a set of libraries exist as system libraries + + returns the sublist of libs that do exist as a syslib or [] +@@ -593,11 +593,14 @@ int foo() + ret.append(lib) + continue + ++ if msg is None: ++ msg = 'Checking for library %s' % lib ++ + (ccflags, ldflags, cpppath) = library_flags(conf, lib) + if shlib: +- res = conf.check(features='c cshlib', fragment=fragment, lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False) ++ res = conf.check(features='c cshlib', fragment=fragment, lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False, msg=msg) + else: +- res = conf.check(lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False) ++ res = conf.check(lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False, msg=msg) + + if not res: + if mandatory: +@@ -925,6 +928,5 @@ def SAMBA_CHECK_UNDEFINED_SYMBOL_FLAGS(c + conf.env.undefined_ldflags = conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True) + + if not sys.platform.startswith("openbsd") and conf.env.undefined_ignore_ldflags == []: +- if conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup']): ++ if conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup'] + conf.env.WERROR_CFLAGS): + conf.env.undefined_ignore_ldflags = ['-undefined', 'dynamic_lookup'] +- |