# HG changeset patch # User Augie Fackler # Date 2018-11-13 14:19:05 # Node ID 177b47ce03754a11f1f810e16f85af2f6a478b1a # Parent c460b1643eb091e944ae400908a432a02837e54d fuzz: more correctly specify CFLAGS and LDFLAGS when building Python Gets us closer to a working msan build alongside our asan build. Differential Revision: https://phab.mercurial-scm.org/D5362 diff --git a/contrib/fuzz/Makefile b/contrib/fuzz/Makefile --- a/contrib/fuzz/Makefile +++ b/contrib/fuzz/Makefile @@ -72,7 +72,7 @@ xdiff_fuzzer: xdiff.cc fuzz-xdiffi.o fuz # TODO use the $OUT env var instead of hardcoding /out /out/sanpy/bin/python: - cd /Python-2.7.15/ && ./configure --without-pymalloc --prefix=$$OUT/sanpy CFLAGS='-O1 -fno-omit-frame-pointer -g -fwrapv -fstack-protector-strong' LDFLAGS=-lasan && ASAN_OPTIONS=detect_leaks=0 make && make install + cd /Python-2.7.15/ && ./configure --without-pymalloc --prefix=$$OUT/sanpy CFLAGS="$(CFLAGS)" LDFLAGS=$$PYLDFLAGS && ASAN_OPTIONS=detect_leaks=0 make && make install sanpy: /out/sanpy/bin/python