This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients christian.heimes, vstinner
Date 2019-06-06.19:55:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559850936.49.0.687139467253.issue37183@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2019-06-06 19:55:36christian.heimessetrecipients: + christian.heimes, vstinner
2019-06-06 19:55:36christian.heimessetmessageid: <1559850936.49.0.687139467253.issue37183@roundup.psfhosted.org>
2019-06-06 19:55:36christian.heimeslinkissue37183 messages
2019-06-06 19:55:36christian.heimescreate