Commit 9e7c24c
Cherry-pick more upstream fixes to support building against python 3.8 (#203)
* Add Python 3.8 compatibility
From Python 3.8 and onwards C extensions are no longer
linked to libpython so in order to embed python within
an application the --embed flag needs to be added to
python3-config --libs. A fall back is provided as the
command will error out on previous python versions.
References: https://bugs.python.org/issue36721
* Fix linking with Python 3.8
Since Python 3.8 --embed flag needs to be provided to python-config to embed python.
Reference: https://bugs.python.org/issue36721
This was partially addressed in collectd#3170 but only fixed building and not linking with python.
Co-authored-by: Charalampos Stratakis <[email protected]>
Co-authored-by: Alexander Meshcheryakov <[email protected]>1 parent ddd6333 commit 9e7c24c
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4713 | 4713 | | |
4714 | 4714 | | |
4715 | 4715 | | |
4716 | | - | |
| 4716 | + | |
4717 | 4717 | | |
4718 | 4718 | | |
4719 | 4719 | | |
4720 | | - | |
| 4720 | + | |
4721 | 4721 | | |
4722 | 4722 | | |
4723 | 4723 | | |
| |||
0 commit comments