diff --git a/src/python/GNUmakefile b/src/python/GNUmakefile index 3a88e49052..2abe3b58ca 100644 --- a/src/python/GNUmakefile +++ b/src/python/GNUmakefile @@ -20,6 +20,9 @@ ifndef PYTHONVERSION endif LIB_INCLUDES = $(shell python$(PYTHONVERSION)-config --includes| sed -e "s/\-iwithsysroot/\-I/g") +ifdef CONDA_BUILD_SYSROOT +LIB_INCLUDES += -I${PREFIX}/include +endif