From: Kefu Chai Date: Thu, 16 Aug 2018 09:25:04 +0000 (+0800) Subject: pybind: do not check MFLAGS X-Git-Tag: v14.0.1~557^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=41ca2e8383640ee3465e47097ba1b6d238d9b191;p=ceph.git pybind: do not check MFLAGS clang does not check for directories passed by -iquote/path/to/foo.h, if a header is included using `#include ` it complains: /home/kefu/ceph/src/pybind/rados/tmpwzjOsS/rados_dummy.c:2:10: error: 'rados/librados.h' file not found with include; use "quotes" instead ^~~~~~~~~~~~~~~~~~ "rados/librados.h" 1 error generated. and MFLAGS does not exist in the env variables of setup.py launched by the top-level make. Signed-off-by: Kefu Chai --- diff --git a/src/pybind/rados/setup.py b/src/pybind/rados/setup.py index c708c3e145df..75081df70e9b 100755 --- a/src/pybind/rados/setup.py +++ b/src/pybind/rados/setup.py @@ -108,7 +108,7 @@ def check_sanity(): compiler = new_compiler() distutils.sysconfig.customize_compiler(compiler) - if {'MAKEFLAGS', 'MFLAGS', 'MAKELEVEL'}.issubset(set(os.environ.keys())): + if {'MAKEFLAGS', 'MAKELEVEL'}.issubset(set(os.environ.keys())): # The setup.py has been invoked by a top-level Ceph make. # Set the appropriate CFLAGS and LDFLAGS