Charalampos Stratakis <cstra...@redhat.com> added the comment:
And here is the difference between compiling the extension with the current tip, comparing to applying my current draft PR: Master branch with the linker flags propagated: running build running build_ext building 'demo' extension creating build creating build/temp.linux-x86_64-3.8 gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/home/Harris/dev/cpython/_install/include/python3.8m -c demo.c -o build/temp.linux-x86_64-3.8/demo.o creating build/lib.linux-x86_64-3.8 gcc -pthread -shared -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -g build/temp.linux-x86_64-3.8/demo.o -o build/lib.linux-x86_64-3.8/demo.cpython-38m-x86_64-linux-gnu.so With introduction of the LDFLAGS_NODIST variable: running build running build_ext building 'demo' extension creating build creating build/temp.linux-x86_64-3.8 gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/home/Harris/dev/cpython/_install/include/python3.8m -c demo.c -o build/temp.linux-x86_64-3.8/demo.o creating build/lib.linux-x86_64-3.8 gcc -pthread -shared build/temp.linux-x86_64-3.8/demo.o -o build/lib.linux-x86_64-3.8/demo.cpython-38m-x86_64-linux-gnu.so ---------- _______________________________________ 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