$ pkg-config --libs python-3.8 Expected to return -lpython3.8 similar to: $ pkg-config --libs python-3.7 -lpython3.7m Also: $ python3.8-config --ldflags -L/usr/lib64 -lcrypt -lpthread -ldl -lutil -lm -lm $ python3.7-config --ldflags -L/usr/lib64 -lpython3.7m -lcrypt -lpthread -ldl -lutil -lm Found while trying to run tests for dev-python/setproctitle against Python 3.8, hardcoding PYLIB=-lpython3.8 got them working.
Per the release notes, if you need libpython, you need to use the "embed" option. https://docs.python.org/3/whatsnew/3.8.html#debug-build-uses-the-same-abi-as-release-build > python3.8-config --ldflags --embed > pkg-config --libs python-3.8-embed