Created
October 11, 2019 21:55
-
-
Save wlach/7338f76c78939f08f91df7fd31e7f1b8 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/cpython/Makefile b/cpython/Makefile | |
index 357d152..72ae284 100644 | |
--- a/cpython/Makefile | |
+++ b/cpython/Makefile | |
@@ -6,6 +6,8 @@ ROOT=$(abspath .) | |
HOSTINSTALL=$(ROOT)/build/$(PYVERSION)/host | |
HOSTBUILD=$(HOSTINSTALL)/Python-$(PYVERSION) | |
HOSTPYTHON=$(HOSTINSTALL)/bin/python3$(EXE) | |
+HOSTPYTHON_CPPFLAGS="-I/usr/local/opt/openssl/include" | |
+HOSTPYTHON_LDFLAGS="-L/usr/local/opt/openssl/lib" | |
HOSTPGEN=$(HOSTINSTALL)/bin/pgen$(EXE) | |
BUILD=$(ROOT)/build/$(PYVERSION)/Python-$(PYVERSION) | |
@@ -76,11 +78,11 @@ $(HOSTPYTHON) $(HOSTPGEN): $(TARBALL) | |
[ -d $(HOSTBUILD) ] || tar -C $(HOSTINSTALL) -xf $(TARBALL) | |
( \ | |
cd $(HOSTBUILD); \ | |
- ./configure --prefix=$(HOSTINSTALL) || cat config.log && \ | |
+ PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig" ./configure --prefix=$(HOSTINSTALL) || cat config.log && \ | |
make regen-grammar && \ | |
make install && \ | |
cp Parser/pgen$(EXE) $(HOSTINSTALL)/bin/ && \ | |
- make distclean \ | |
+ make distclean; \ | |
) | |
@@ -142,4 +144,5 @@ $(BUILD)/$(LIB): $(BUILD)/Makefile $(HOSTPYTHON) $(HOSTPGEN) Setup.local | |
cd $(BUILD); \ | |
emmake make HOSTPYTHON=$(HOSTPYTHON) HOSTPGEN=$(HOSTPGEN) CROSS_COMPILE=yes $(LIB) \ | |
) | |
+ sed -i -e 's/-undefined dynamic_lookup//' build/$(PYVERSION)/Python-$(PYVERSION)/Lib/_sysconfigdata__emscripten_.py | |
touch $(BUILD)/$(LIB) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment