diff options
author | van Hauser <vh@thc.org> | 2019-11-30 14:30:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-30 14:30:53 +0100 |
commit | cbe38ff9050a5e10fdf290243a2aa12a0a5de70f (patch) | |
tree | c94d55d674fa16e50f56fd789f151b98cfaaf016 | |
parent | 9c2e27a026e580d5288d2bf4f70bc2b99de5a88f (diff) | |
parent | 39dc0cca375eb5ea5f8998f3c3288dc53b857aa6 (diff) | |
download | afl++-cbe38ff9050a5e10fdf290243a2aa12a0a5de70f.tar.gz |
Merge pull request #120 from devnexen/py2_mod_build_fix
Python module build fix in exotic oses
-rw-r--r-- | Makefile | 4 |
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= |