Charalampos Stratakis <cstra...@redhat.com> added the comment:

So to better illustrate the actual issue I'll be using an example from the 
python documentation [0][1].

Get the demo.c and the setup.py. Compile cpython first with --with-lto and then 
compile the demo.c with ./python3 setup.py build.

You will notice that various link time optimization linker flags are passed to 
the extension.

[0] 
https://docs.python.org/3/extending/extending.html#keyword-parameters-for-extension-functions
[1] 
https://docs.python.org/3/extending/building.html#building-c-and-c-extensions-with-distutils

----------
Added file: https://bugs.python.org/file47976/demo.c

_______________________________________
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