Skip to content

Instantly share code, notes, and snippets.

@kusor

kusor/diff.diff Secret

Created February 14, 2012 17:41
Show Gist options
  • Save kusor/9c515e905048fd1d8e57 to your computer and use it in GitHub Desktop.
Save kusor/9c515e905048fd1d8e57 to your computer and use it in GitHub Desktop.
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