aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2016-08-27 09:21:23 +0100
committerChristopher Baines <mail@cbaines.net>2016-09-03 12:20:26 +0100
commitdedc42952b40fea75e909d2f89a320a4ee3e6781 (patch)
treeacd472ba847b2678f2c562c5002644e9d595f9bc
parent7d07ab0808e0446a788d822baef69afd54320a61 (diff)
downloadpyguile-dedc42952b40fea75e909d2f89a320a4ee3e6781.tar
pyguile-dedc42952b40fea75e909d2f89a320a4ee3e6781.tar.gz
Don't hardcode the Python include path
This is a problem when building with Guix.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2cef720..436b418 100644
--- a/Makefile
+++ b/Makefile
@@ -45,7 +45,7 @@
#PYVERSION = `python -V 2>&1 | cut -d\ -f2 | cut -d. -f1-2`
PYVERSION = `python -c "import sys;sys.stdout.write(sys.version[:3])"`
-PYINC = -I/usr/include/python$(PYVERSION)
+PYINC = $(shell python-config --includes)
PYLIB = -lpython$(PYVERSION)
PERL = /usr/bin/perl
TEST_VERBOSE = 0