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