From d1e805b0fc912c7aa900acd13b0af68e3125b6ff Mon Sep 17 00:00:00 2001 From: tnn Date: Fri, 7 Jan 2022 20:24:39 +0000 Subject: [PATCH] wasi-compiler-rt: apply band-aid for ranlib error in www/firefox --- lang/wasi-compiler-rt/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lang/wasi-compiler-rt/Makefile b/lang/wasi-compiler-rt/Makefile index 9e40db01ef76..9d95c899b230 100644 --- a/lang/wasi-compiler-rt/Makefile +++ b/lang/wasi-compiler-rt/Makefile @@ -1,9 +1,10 @@ -# $NetBSD: Makefile,v 1.7 2022/01/07 15:49:53 tnn Exp $ +# $NetBSD: Makefile,v 1.8 2022/01/07 20:24:39 tnn Exp $ .include "../../lang/llvm/version.mk" DISTNAME= compiler-rt-${LLVM_VERSION}.src PKGNAME= ${DISTNAME:S/.src//:S/compiler-rt-/wasi-compiler-rt-/} +PKGREVISION= 1 CATEGORIES= lang devel MAINTAINER= pkgsrc-users@NetBSD.org @@ -60,6 +61,13 @@ CMAKE_INSTALL_PREFIX= ${PREFIX}/lib/clang/13.0.0 post-extract: ${MKDIR} ${WRKDIR}/build +# Run llvm-ranlib again on the archive. Fixes mystery build failure +# in Firefox due to missing index. Might be a MAKE_JOBS problem in +# this package? +post-install: + ${PREFIX}/bin/llvm-ranlib \ + ${DESTDIR}${PREFIX}/lib/clang/${LLVM_VERSION}/lib/wasi/libclang_rt.builtins-wasm32.a + .include "../../mk/bsd.prefs.mk" ABI= # 32