[New-bugs-announce] [issue24116] --with-pydebug has no effect when the final python binary is compiled
aleb
report at bugs.python.org
Sun May 3 09:14:38 CEST 2015
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 <report at bugs.python.org>
<http://bugs.python.org/issue24116>
_______________________________________
More information about the New-bugs-announce
mailing list