summaryrefslogtreecommitdiff
path: root/lang/wasi-compiler-rt
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2022-01-07 13:32:47 +0000
committertnn <tnn@pkgsrc.org>2022-01-07 13:32:47 +0000
commit7bc78beb8218d54d04558222c11a85be1fdbb472 (patch)
treec9559b9228892929d91bda962e73d0c5db669c92 /lang/wasi-compiler-rt
parent5c2d46f32b73dfa5c761281880f16e16d2cd2258 (diff)
downloadpkgsrc-7bc78beb8218d54d04558222c11a85be1fdbb472.tar.gz
wasi-*: force ABI=32
These packages were failing when ABI=64 in mk.conf, because then -m64 is passed down to clang and WebAssembly currently only supports -m32.
Diffstat (limited to 'lang/wasi-compiler-rt')
-rw-r--r--lang/wasi-compiler-rt/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/lang/wasi-compiler-rt/Makefile b/lang/wasi-compiler-rt/Makefile
index 87fbdc7bb59..6ef7e316656 100644
--- a/lang/wasi-compiler-rt/Makefile
+++ b/lang/wasi-compiler-rt/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2021/12/22 16:10:08 ryoon Exp $
+# $NetBSD: Makefile,v 1.4 2022/01/07 13:32:47 tnn Exp $
.include "../../lang/llvm/version.mk"
@@ -60,6 +60,9 @@ CMAKE_INSTALL_PREFIX= ${PREFIX}/lib/clang/13.0.0
post-extract:
${MKDIR} ${WRKDIR}/build
+.include "../../mk/bsd.prefs.mk"
+
+ABI= 32
PKGSRC_COMPILER= clang
CLANGBASE= ${PREFIX}
BUILDLINK_DEPMETHOD.clang= build