Message344864
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 |
|
Date |
User |
Action |
Args |
2019-06-06 19:55:36 | christian.heimes | set | recipients:
+ christian.heimes, vstinner |
2019-06-06 19:55:36 | christian.heimes | set | messageid: <1559850936.49.0.687139467253.issue37183@roundup.psfhosted.org> |
2019-06-06 19:55:36 | christian.heimes | link | issue37183 messages |
2019-06-06 19:55:36 | christian.heimes | create | |
|