[New-bugs-announce] [issue35257] Add LDFLAGS_NODIST for the LDFLAGS not intended for propagation to C extensions.

Charalampos Stratakis report at bugs.python.org
Thu Nov 15 11:14:01 EST 2018


New submission from Charalampos Stratakis <cstratak at redhat.com>:

Through acb8c5234302f8057b331abaafb2cc8697daf58f the CFLAGS_NODIST variable was created, in order to place there compiler flags used by the interpreter, but not intended to be propagated to C extensions.

I saw a similar issue when working on backporting 67e997bcfdac55191033d57a16d1408aL1313 on python 3.6, where the -flto flag should be passed to CFLAGS_NODIST instead of BASECFLAGS, however even if that is fixed, the LDFLAGS will still be propagated to C extensions.

Thus in order to provide more flexibility in that regard, I propose to add the LDFLAGS_NODIST variable, which in a similar vein as CFLAGS_NODIST, will hold the LDFLAGS intended to be used only by the interpreter.

Thoughts or comments on this approach?

----------
components: Build, Distutils, Extension Modules
messages: 329951
nosy: cstratak, dstufft, eric.araujo
priority: normal
severity: normal
status: open
title: Add LDFLAGS_NODIST for the LDFLAGS not intended for propagation to C extensions.
versions: Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35257>
_______________________________________


More information about the New-bugs-announce mailing list