aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2019-11-30 14:30:53 +0100
committerGitHub <noreply@github.com>2019-11-30 14:30:53 +0100
commitcbe38ff9050a5e10fdf290243a2aa12a0a5de70f (patch)
treec94d55d674fa16e50f56fd789f151b98cfaaf016 /Makefile
parent9c2e27a026e580d5288d2bf4f70bc2b99de5a88f (diff)
parent39dc0cca375eb5ea5f8998f3c3288dc53b857aa6 (diff)
downloadAFLplusplus-cbe38ff9050a5e10fdf290243a2aa12a0a5de70f.tar.gz
Merge pull request #120 from devnexen/py2_mod_build_fix
Python module build fix in exotic oses
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e47e1eff..b5ee6a71 100644
--- a/Makefile
+++ b/Makefile
@@ -69,9 +69,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=