Skip to content

Commit

Permalink
python3: use ssl pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
anttikantee committed May 11, 2016
1 parent 0522e77 commit 45d5f97
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions python3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ UPSTREAM=https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tar.xz
TARBALL=$(notdir $(UPSTREAM))
ARCH=$(shell $(HOST_CC) -dumpmachine)

all: $(RUMPRUN_PKGS_DIR)/lib/libsqlite.a images/python.iso
all: libssl $(RUMPRUN_PKGS_DIR)/lib/libsqlite.a images/python.iso

.NOTPARALLEL: $(RUMPRUN_PKGS_DIR)/lib/libsqlite.a
$(RUMPRUN_PKGS_DIR)/lib/libsqlite.a:
Expand All @@ -15,8 +15,8 @@ build/python: build/Makefile
$(MAKE) -C build install

PYTHON_CONF_ENV += \
LDFLAGS="-static -static-libgcc" \
CPPFLAGS="$(CPPFLAGS) -static" \
LDFLAGS="-static -static-libgcc -L${RUMPRUN_PKGS_DIR}/lib" \
CPPFLAGS="$(CPPFLAGS) -static -I${RUMPRUN_PKGS_DIR}/include" \
CFLAGS="$(CFLAGS) -static" \
CC=$(RUMPRUN_CC) \
PYTHON_FOR_BUILD=$(shell pwd)/build/hostdist/bin/python3 \
Expand All @@ -28,7 +28,8 @@ PYTHON_CONF_OPTS += \
--host=$(RUMPRUN_TOOLCHAIN_TUPLE) \
--build $(ARCH) \
--enable-ipv6 \
--without-ensurepip
--with-openssl=${RUMPRUN_PKGS_DIR} \
--without-ensurepip

dl/$(TARBALL):
mkdir -p dl
Expand Down Expand Up @@ -71,3 +72,5 @@ clean:
.PHONY: distclean
distclean: clean
rm -rf build

include ../Makefile.deps

0 comments on commit 45d5f97

Please sign in to comment.