diff options
author | Jose <jose@zeroc.com> | 2018-11-16 20:26:18 +0000 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2018-11-16 20:26:18 +0000 |
commit | 491fe6468d05526b66fe3f964402684107ad5b77 (patch) | |
tree | c17d02854660983c46376b903a6e9f2917fd4c96 /python | |
parent | Fix build failures with Python 3.7.0 (diff) | |
download | ice-491fe6468d05526b66fe3f964402684107ad5b77.tar.bz2 ice-491fe6468d05526b66fe3f964402684107ad5b77.tar.xz ice-491fe6468d05526b66fe3f964402684107ad5b77.zip |
Better fix for python build failre
Diffstat (limited to 'python')
-rw-r--r-- | python/config/Make.rules | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/python/config/Make.rules b/python/config/Make.rules index 94a919e372d..5d38cdc65c7 100644 --- a/python/config/Make.rules +++ b/python/config/Make.rules @@ -24,6 +24,10 @@ PYTHON ?= python python-version := $(shell $(PYTHON) -c "import sys; print(\"{0}.{1}\".format(sys.version_info[0], sys.version_info[1]))") python-config := python$(python-version)-config +ifeq ($(os),Linux) + cppflags := $(filter-out -Wredundant-decls,$(cppflags)) +endif + python_cppflags := $(shell $(python-config) --cflags) python_ldflags := $(shell $(python-config) --ldflags) # Use .so as default value --extension-suffix is not supported by python-config in all platforms @@ -41,8 +45,7 @@ endif # Remove the -Wstrict-prototypes option which is not valid with C++ and # -Wunreachable-code which is causing a compilation error with Slice/Parser.cpp -python_cppflags := $(filter-out -Wredundant-decls -Wunreachable-code -Wstrict-prototypes,$(python_cppflags)) -python_cppflags := $(python_cppflags) -Wno-redundant-decls -Wno-missing-field-initializers +python_cppflags := $(filter-out -Wunreachable-code -Wstrict-prototypes,$(python_cppflags)) -Wno-missing-field-initializers # # Python installation directory |