Patchwork D5362: fuzz: more correctly specify CFLAGS and LDFLAGS when building Python

login
register
mail settings
Submitter phabricator
Date Dec. 4, 2018, 12:47 p.m.
Message ID <442f415712906d80facb2eae25066073@localhost.localdomain>
Download mbox | patch
Permalink /patch/36945/
State Not Applicable
Headers show

Comments

phabricator - Dec. 4, 2018, 12:47 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG4b83ae1e0387: fuzz: more correctly specify CFLAGS and LDFLAGS when building Python (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5362?vs=12687&id=12692

REVISION DETAIL
  https://phab.mercurial-scm.org/D5362

AFFECTED FILES
  contrib/fuzz/Makefile

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/contrib/fuzz/Makefile b/contrib/fuzz/Makefile
--- a/contrib/fuzz/Makefile
+++ b/contrib/fuzz/Makefile
@@ -72,7 +72,7 @@ 
 
 # 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