From 39dc0cca375eb5ea5f8998f3c3288dc53b857aa6 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Tue, 26 Nov 2019 09:10:39 +0000 Subject: Python module build fix in exotic oses --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9952ee6e..1c535bfb 100644 --- a/Makefile +++ b/Makefile @@ -62,9 +62,9 @@ endif COMM_HDR = include/alloc-inl.h include/config.h include/debug.h include/types.h -ifeq "$(shell echo '\#include @int main() {return 0; }' | tr @ '\n' | $(CC) -x c - -o .test -I$(PYTHON_INCLUDE) -lpython2.7 2>/dev/null && echo 1 || echo 0 )" "1" +ifeq "$(shell echo '\#include @int main() {return 0; }' | tr @ '\n' | $(CC) -x c - -o .test -I$(PYTHON_INCLUDE) $(LDFLAGS) -lpython2.7 2>/dev/null && echo 1 || echo 0 )" "1" PYTHON_OK=1 - PYFLAGS=-DUSE_PYTHON -I$(PYTHON_INCLUDE) -lpython2.7 + PYFLAGS=-DUSE_PYTHON -I$(PYTHON_INCLUDE) $(LDFLAGS) -lpython2.7 else PYTHON_OK=0 PYFLAGS= -- cgit 1.4.1