Commit 4deefc8
Link with libpython3.8.so
Since Python 3.8, python-config --libs no longer includes
/usr/lib/libpython3.8.so in the linked libraries. This results in the
following error when using plugins, for example in "make man":
PYTHONPATH=./ CC_FOR_CPYCHECKER=cc LD_LIBRARY_PATH=gcc-c-api: CC=cc ./gcc-with-python generate-passes-svg.py test.c
cc1: error: cannot load plugin /usr/src/gcc-python-plugin/src/gcc-python-plugin-0.17/python.so
/usr/src/gcc-python-plugin/src/gcc-python-plugin-0.17/python.so: undefined symbol: PyUnicode_FromFormat
Fix this by adding -lpython3.8 to $(PYTHON_LIBS) in Makefile.1 parent cdb7020 commit 4deefc8
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
0 commit comments