From 78ccb9465b998b765a357fc76810e823486f54cc Mon Sep 17 00:00:00 2001 From: Igor Katson Date: Tue, 11 Jul 2023 15:03:28 +0100 Subject: [PATCH] Speed up openssl cross-compile times --- Makefile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index a50377e..834976e 100644 --- a/Makefile +++ b/Makefile @@ -51,8 +51,7 @@ target/openssl-linux/x86_64/lib/libssl.a: target/openssl-linux/openssl-$(OPENSSL tar xf ../../openssl-$(OPENSSL_VERSION).tar.gz && \ cd openssl-$(OPENSSL_VERSION) && \ ./Configure linux-generic64 --prefix="$${OPENSSL_ROOT}" --openssldir="$${OPENSSL_ROOT}" no-shared --cross-compile-prefix=x86_64-unknown-linux-gnu- && \ - make -j && \ - make install_sw + make install_dev -j target/openssl-linux/aarch64/lib/libssl.a: target/openssl-linux/openssl-$(OPENSSL_VERSION).tar.gz export OPENSSL_ROOT=$(PWD)/target/openssl-linux/aarch64/ && \ @@ -61,8 +60,7 @@ target/openssl-linux/aarch64/lib/libssl.a: target/openssl-linux/openssl-$(OPENSS tar xf ../../openssl-$(OPENSSL_VERSION).tar.gz && \ cd openssl-$(OPENSSL_VERSION) && \ ./Configure linux-aarch64 --prefix="$${OPENSSL_ROOT}" --openssldir="$${OPENSSL_ROOT}" no-shared --cross-compile-prefix=aarch64-unknown-linux-gnu- && \ - make -j && \ - make install_sw + make install_dev -j target/openssl-linux/armv6/lib/libssl.a: target/openssl-linux/openssl-$(OPENSSL_VERSION).tar.gz export OPENSSL_ROOT=$(PWD)/target/openssl-linux/armv6/ && \ @@ -71,8 +69,7 @@ target/openssl-linux/armv6/lib/libssl.a: target/openssl-linux/openssl-$(OPENSSL_ tar xf ../../openssl-$(OPENSSL_VERSION).tar.gz && \ cd openssl-$(OPENSSL_VERSION) && \ LDFLAGS=-latomic ./Configure linux-generic32 --prefix="$${OPENSSL_ROOT}" --openssldir="$${OPENSSL_ROOT}" no-shared --cross-compile-prefix=arm-linux-gnueabihf- && \ - make -j && \ - make install_sw + make install_dev -j @PHONY: release-linux release-linux: release-linux-x86_64 release-linux-aarch64