[issue37183] Linker failure when creating main binary with python-config --libs

2019-06-06 Thread STINNER Victor


STINNER Victor  added the comment:

It is a deliberate change but matbe it is not well documented? Should we
update the C API doc?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37183] Linker failure when creating main binary with python-config --libs

2019-06-06 Thread Christian Heimes


Christian Heimes  added the comment:

memo to me: read the **whole** what's new document.

https://docs.python.org/3.8/whatsnew/3.8.html#debug-build-uses-the-same-abi-as-release-build

--
resolution:  -> not a bug
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37183] Linker failure when creating main binary with python-config --libs

2019-06-06 Thread Christian Heimes


Christian Heimes  added the comment:

python-3.8.pc also omits -lpython3.8:

$ pkg-config python-3.8 --libs

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37183] Linker failure when creating main binary with python-config --libs

2019-06-06 Thread Christian Heimes


New submission from Christian Heimes :

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com