[issue20935] Cherry pick CFLAGS, add to flags for $(BUILDPYTHON) Makefile rule

2014-03-15 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue20935] Cherry pick CFLAGS, add to flags for $(BUILDPYTHON) Makefile rule

2014-03-15 Thread Jeffrey Walton
Jeffrey Walton added the comment: And: Modules/_freeze_importlib: Modules/_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN) $(LINKCC) -g3 -fsanitize=address $(PY_LDFLAGS) -o $@ Modules/_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST) -- _

[issue20935] Cherry pick CFLAGS, add to flags for $(BUILDPYTHON) Makefile rule

2014-03-15 Thread Jeffrey Walton
Jeffrey Walton added the comment: And: Modules/_testembed: Modules/_testembed.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY) $(LINKCC) -g3 -fsanitize=address $(PY_LDFLAGS) $(LINKFORSHARED) -o $@ Modules/_testembed.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST) -- ___

[issue20935] Cherry pick CFLAGS, add to flags for $(BUILDPYTHON) Makefile rule

2014-03-15 Thread Jeffrey Walton
New submission from Jeffrey Walton: >From Python head in mercurial. When building Python under Clang's sanitizers, we provide a couple of flags to instrument binaries with the sanitizers. For example: export CC=/usr/local/bin/clang export CXX=/usr/local/bin/clang++ export CFLAGS="-g3 -fsanitiz