New submission from Christian Heimes <li...@cheimes.de>:
With 3.8 it is no longer possible to compile a custom Python interpreter with linker flags from python-config. The config helper omits the main Python library: $ python3.8-config --ldflags -L/usr/lib64 -lcrypt -lpthread -ldl -lutil -lm -lm $ gcc -L/usr/lib64 -lcrypt -lpthread -ldl -lutil -lm -lm -o custompython custompython.o /usr/bin/ld: custompython.o: in function `main': custompython.c:10: undefined reference to `Py_BytesMain' collect2: error: ld returned 1 exit status ---------- components: Interpreter Core messages: 344864 nosy: christian.heimes, vstinner priority: high severity: normal stage: needs patch status: open title: Linker failure when creating main binary with python-config --libs type: compile error versions: Python 3.8, Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37183> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com