From 01175702fc370170e1348041473cb1d95f51450b Mon Sep 17 00:00:00 2001 From: William Lachance Date: Fri, 18 Oct 2019 12:15:15 -0400 Subject: [PATCH] Add openssl to include paths for building host copy of cpython This should be a no-op on Linux, but is needed for Mac --- cpython/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpython/Makefile b/cpython/Makefile index 357d1528e..0b572b0fb 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,7 +78,7 @@ $(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/ && \