TODO: build: fix issue with standard libpaths introduced by cups-config and friends
[obnox/samba/samba-obnox.git] / buildtools / wafadmin / Tools / python.py
index 35c61c24664ecac5522b937c33c75e3d14038660..d5ee841dbed6b5d10b1df9b1cc6d4276c74ca2bf 100644 (file)
@@ -11,6 +11,7 @@ from Logs import debug, warn, info
 from TaskGen import extension, before, after, feature
 from Configure import conf
 from config_c import parse_flags
+import ccroot
 
 EXT_PY = ['.py']
 FRAG_2 = '''
@@ -249,7 +250,8 @@ MACOSX_DEPLOYMENT_TARGET = %r
                result = conf.check(lib=name, uselib='PYEMBED', libpath=path)
 
        if result:
-               env['LIBPATH_PYEMBED'] = path
+               if not ccroot.is_standard_libpath(env, path[0]):
+                       env['LIBPATH_PYEMBED'] = path
                env.append_value('LIB_PYEMBED', name)
        else:
                conf.log.write("\n\n### LIB NOT FOUND\n")