From 694debd4cc7f13e70da78ee0b6eb85745620e099 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 20 Apr 2021 05:37:49 +0200 Subject: [PATCH] build/openssl: pass RANLIB=... to "make install" The "install_dev" target runs ranlib during installation, and this can break the Android build. --- python/build/openssl.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python/build/openssl.py b/python/build/openssl.py index a7350e6ac..ecf88d4e2 100644 --- a/python/build/openssl.py +++ b/python/build/openssl.py @@ -17,6 +17,12 @@ class OpenSSLProject(MakeProject): 'build_libs', ] + def get_make_install_args(self, toolchain): + # OpenSSL's Makefile runs "ranlib" during installation + return MakeProject.get_make_install_args(self, toolchain) + [ + 'RANLIB=' + toolchain.ranlib, + ] + def build(self, toolchain): src = self.unpack(toolchain, out_of_tree=False)