Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

commonize CPPFLAGS definition

  • Loading branch information...
commit 8377c73dee9431299427600e09a2497c1256af56 1 parent 64275cd
@davepacheco authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  Makefile
View
3  Makefile
@@ -22,15 +22,14 @@ PY_PREFIX=$(shell $(PY_PYTHON) -c "import sys; print(sys.prefix)")
PY_VERSION=$(shell $(PY_PYTHON) -c "import sys; print('.'.join(map(str, sys.version_info[:2])))")
ifeq ($(BUILDOS),Darwin)
PY_ARCH=$(shell $(PY_PYTHON) -c 'import sys; print (sys.maxint > 2**32 and "x86_64" or "i386")')
- CPPFLAGS += -I$(PY_PREFIX)/include/python$(PY_VERSION)
SOLDFLAGS += $(PY_PREFIX)/Python
CC=gcc -arch $(PY_ARCH)
else
PY_BIT=$(shell $(PY_PYTHON) -c 'import sys; print (sys.maxint > 2**32 and "64" or "32")')
- CPPFLAGS += -I$(PY_PREFIX)/include/python$(PY_VERSION)
CFLAGS += -m$(PY_BIT)
endif
+CPPFLAGS += -I$(PY_PREFIX)/include/python$(PY_VERSION)
SOFILE = $(BUILDDIR)/pyspidermonkey.so
all: $(SOFILE)
Please sign in to comment.
Something went wrong with that request. Please try again.