[New-bugs-announce] [issue37183] Linker failure when creating main binary with python-config --libs
Christian Heimes
report at bugs.python.org
Thu Jun 6 15:55:36 EDT 2019
New submission from Christian Heimes <lists at 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 <report at bugs.python.org>
<https://bugs.python.org/issue37183>
_______________________________________
More information about the New-bugs-announce
mailing list