New submission from Charalampos Stratakis <cstra...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue35257>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to