python 3.9 package leaks CFLAGS into user packages via sysconfig

Marco Atzeri marco.atzeri@gmail.com
Tue Dec 28 15:16:41 GMT 2021


On 28.12.2021 03:19, Marco Atzeri wrote:
> On 28.12.2021 02:27, Matthias Koeppe wrote:
>> $ python3.9 -m sysconfig | grep CFLAGS

Hi Matthias,

can you please verify the test package

python39-3.9.9-3 (not the -2)

$ python3.9 -m sysconfig | grep CFLAGS
         BASECFLAGS = "-Wno-unused-result -Wsign-compare"
         CFLAGS = "-Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv 
-O3 -Wall"
         CFLAGSFORSHARED = ""
         CFLAGS_ALIASING = ""
         CONFIGURE_CFLAGS = ""
         CONFIGURE_CFLAGS_NODIST = "-ggdb -O2 -pipe -Wall 
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong 
--param=ssp-buffer-size=4 
-fdebug-prefix-map=/pub/devel/python/python39/python39-3.9.9-3.x86_64/build=/usr/src/debug/python39-3.9.9-3 
-fdebug-prefix-map=/pub/devel/python/python39/python39-3.9.9-3.x86_64/src/Python-3.9.9=/usr/src/debug/python39-3.9.9-3 
-DOPENSSL_NO_SSL3=1 -I/usr/include/uuid/ -std=c99 -Wextra 
-Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers 
-Werror=implicit-function-declaration -fvisibility=hidden"
....

Regards
Marco


More information about the Cygwin mailing list