-
-
Save kusor/9c515e905048fd1d8e57 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Makefile b/Makefile | |
index bd327fd..174387c 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -17,10 +17,10 @@ CPPFLAGS += -DNDEBUG -D_REENTRANT \ | |
-I/usr/include \ | |
ifeq ($(BUILDOS),Darwin) | |
- PY_PREFIX=$(shell python2.6 -c "import sys; sys.stdout.write(sys.prefix)") | |
- PY_FRAMEWORK_PREFIX=$(shell python2.6 -c "import sys,os; sys.stdout.write(os.path.normpath(sys.prefix+'/../../..'))") | |
- PY_FIRST_ARCH=$(shell set -x; file `which python2.6` | grep "for architecture" | head -1 | awk '{print $$NF}') | |
- CPPFLAGS += -I$(PY_PREFIX)/include/python2.6 | |
+ PY_PREFIX=$(shell python2.7 -c "import sys; sys.stdout.write(sys.prefix)") | |
+ PY_FRAMEWORK_PREFIX=$(shell python2.7 -c "import sys,os; sys.stdout.write(os.path.normpath(sys.prefix+'/../../..'))") | |
+ PY_FIRST_ARCH=$(shell set -x; file `which python2.7` | grep "for architecture" | head -1 | awk '{print $$NF}') | |
+ CPPFLAGS += -I$(PY_PREFIX)/include/python2.7 | |
SOLDFLAGS += -F$(PY_FRAMEWORK_PREFIX) -framework Python | |
LD=gcc -arch $(PY_FIRST_ARCH) | |
CC=gcc -arch $(PY_FIRST_ARCH) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment