about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2019-11-26 09:10:39 +0000
committerDavid Carlier <devnexen@gmail.com>2019-11-26 09:10:39 +0000
commit39dc0cca375eb5ea5f8998f3c3288dc53b857aa6 (patch)
tree54b03db466f8d9b6414689d6db0553d702cb6cf5
parent7f0fe3b7d2f5d4ad4698e31e1f4218c14ee11c03 (diff)
downloadafl++-39dc0cca375eb5ea5f8998f3c3288dc53b857aa6.tar.gz
Python module build fix in exotic oses
-rw-r--r--Makefile4
1 files 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 <Python.h>@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 <Python.h>@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=