From a927c2e34d21ee5c9a316b8118dd005d0770f1fd Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 26 Feb 2015 07:37:21 +0100 Subject: [PATCH] libressl: re-run libtoolize to fix musl cross compilation. --- srcpkgs/libressl/template | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/srcpkgs/libressl/template b/srcpkgs/libressl/template index cda5c214740..f18fd189236 100644 --- a/srcpkgs/libressl/template +++ b/srcpkgs/libressl/template @@ -15,6 +15,13 @@ checksum=eb2f370971408fb10af6453e556465c8eee728ac333bf1eb47ec1a5112304f7c # Compat pkg that depends on the real pkgs. depends="libcrypto30-${version}_${revision} libssl30-${version}_${revision} libtls1-${version}_${revision}" +if [ "$CROSS_BUILD" ]; then + hostmakedepends="libtool" + pre_configure() { + libtoolize -f + } +fi + post_build() { $CC -Wall $CFLAGS -DHAVE_STRNDUP -Iinclude -Lcrypto/.libs \ $LDFLAGS ${FILESDIR}/c_rehash.c -o ${wrksrc}/c_rehash -lcrypto