[issue24116] --with-pydebug has no effect when the final python binary is compiled

2015-05-03 Thread aleb

aleb added the comment:

It's confusing that the CFLAGS specified when running make are passed further 
sometimes but not always. So I guess that's a workaround? Or CFLAGS should 
never be specified to make directly?

--

___
Python tracker 
<http://bugs.python.org/issue24116>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24116] --with-pydebug has no effect when the final python binary is compiled

2015-05-03 Thread aleb

New submission from aleb:

This is how I configure and build:

$ ./configure --prefix=/usr \
  --with-threads \
  --with-computed-gotos \
  --enable-ipv6 \
  --with-system-expat \
  --with-dbmliborder=gdbm:ndbm \
  --with-system-ffi \
  --with-system-libmpdec \
  --enable-loadable-sqlite-extensions \
  --without-ensurepip \
  --with-pydebug

$ make "CFLAGS=-g -fno-inline -fno-strict-aliasing -O0"
...
gcc -pthread -c -Wno-unused-result -g -O0 -Wall -Wstrict-prototypes 
-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong 
--param=ssp-buffer-size=4 -g -fno-inline -fno-strict-aliasing -O0  
-Werror=declaration-after-statement   -I. -IInclude -I./Include 
-D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2  -DPy_BUILD_CORE -o Modules/python.o 
./Modules/python.c
...
gcc -pthread -Wl,-O1,--sort-common,--as-needed,-z,relro 
-Wl,-O1,--sort-common,--as-needed,-z,relro -Xlinker -export-dynamic -o python 
Modules/python.o libpython3.4dm.a -lpthread -ldl  -lutil   -lm  

Notice the specified CFLAGS are used when building "-o Modules/python.o" for 
example (as many others), but are not used when building the "-o python" binary.

--
components: Build
messages: 242455
nosy: aleb
priority: normal
severity: normal
status: open
title: --with-pydebug has no effect when the final python binary is compiled
type: compile error
versions: Python 3.4

___
Python tracker 
<http://bugs.python.org/issue24116>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com