waf: pyembed broken on Python 3.8
Hi,
I modified Python 3.8 to no longer link C extensions to libpython by default: https://docs.python.org/dev/whatsnew/3.8.html#debug-build-uses-the-same-abi-as-release-build
"python3.8-config --libs" (and pkg-config python3.8 --libs) command doesn't output -lpython3.8 anymore for this reason. For waf "pyext": that's fine. For waf "pyembed": waf fails to detect Python because the linker fails with: undefined reference to `Py_Initialize'.
I created https://bugs.python.org/issue36721 to add a new --embed option to python3.8-config and pkg-config python3.8 to add -lpython3.8.
I'm working on implementing https://bugs.python.org/issue36721. I create this issue to track it in waf because waf will have to be modified to use the new --embed flag.
Once https://bugs.python.org/issue36721 I will work on a fix for waf.
One example of this issue: the compilation of "libtdb" fails on Fedora Rawhide with Python 3.8.0a4, it's a dependency of Samba which uses waf build system: https://bugzilla.redhat.com/show_bug.cgi?id=1711638
Sorry for breaking waf :-) I'm now working on fixes!