Add openssl to include paths for building host copy of cpython

This should be a no-op on Linux, but is needed for Mac
This commit is contained in:
William Lachance 2019-10-18 12:15:15 -04:00 committed by William Lachance
parent bbc6d8ddce
commit 01175702fc
1 changed files with 3 additions and 1 deletions

View File

@ -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/ && \