New submission from Eric N. Vander Weele <eri...@gmail.com>:

When specifying CPPFLAGS during `./configure`, 
`sysconfig.get_config_var('CPPFLAGS')` does capture the originally specified 
flags.  However, when building a C/C++ extension, any flags specified via 
CPPFLAGS are not present during compilation of extension source files.

Since preprocessor flags (e.g., '-I' rules) may be used during `./configure` 
instead of `CFLAGS`, it appears that the `CPPFLAGS` captured should also be 
injected when customizing the compiler executable to be invoked.

I have PR that will be submitted and linked shortly.

----------
components: Build, Distutils
messages: 320683
nosy: dstufft, eric.araujo, ericvw
priority: normal
severity: normal
status: open
title: CPPFLAGS during ./configure are not passed-through in 
sysconfig.customize_compiler
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33990>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to