Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant make under arch with python scripting enabled #533

Open
Kotuklion opened this issue Dec 12, 2019 · 2 comments
Open

Cant make under arch with python scripting enabled #533

Kotuklion opened this issue Dec 12, 2019 · 2 comments
Labels

Comments

@Kotuklion
Copy link

Kotuklion commented Dec 12, 2019

After running make ENABLE_PYTHON=1 make has thrown a bunch of „undefined references" from src/python.api.c.
Solved it by running:
make USER_CFLAGS="-I /usr/include/python3.8 -lpython3.8" USER_LDFLAGS="-I /usr/lib/python3.8" ENABLE_PYTHON=1
I wonder if this problem can be solved by editing the Makefile, but I don't know how to do that.

@mbakke
Copy link

mbakke commented May 9, 2020

Not sure if this is backwards-compatible, but for Python 3.8, the python3-config --ldflags invokation in cfg/checks/python.mk needs to include --embed.

@xWNgLWT0mQf
Copy link

I had the same problem under Gentoo Linux. The fix above resolved the issue. Thanks mbakke.

@JFreegman JFreegman added the bug label Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants