wasi-compiler-rt & wasi-libcxx: build fix for firefox
BUILDLINK_API_DEPENDS must reflect the exact llvm version, as this is necessary to force the wasi packages to match, or build failures will occur, because various commands invoked in the Firefox build process supply the exact clang version in their path. For instance: wasm-ld: error: cannot open /usr/pkg/lib/clang/13.0.1/lib/wasi/libclang_rt.builtins-wasm32.a: No such file or directory clang-13: error: linker command failed with exit code 1 (use -v to see invocation) (No PKGREVISION bump of www/firefox required, as this is a build-only dependency, and no other packages presently depend on these.)
This commit is contained in:
parent
ba47ab53be
commit
968699988d
2 changed files with 8 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: buildlink3.mk,v 1.2 2022/02/04 12:12:27 wiz Exp $
|
||||
# $NetBSD: buildlink3.mk,v 1.3 2022/06/04 00:34:30 gutteridge Exp $
|
||||
|
||||
BUILDLINK_TREE+= wasi-compiler-rt
|
||||
|
||||
|
@ -7,7 +7,9 @@ BUILDLINK_DEPMETHOD.wasi-compiler-rt?= build
|
|||
.if !defined(WASI_COMPILER_RT_BUILDLINK3_MK)
|
||||
WASI_COMPILER_RT_BUILDLINK3_MK:=
|
||||
|
||||
BUILDLINK_API_DEPENDS.wasi-compiler-rt+= wasi-compiler-rt>=13.0.0
|
||||
# This exact version must be kept in sync with llvm, or firefox
|
||||
# minimum build dependencies will be incorrect.
|
||||
BUILDLINK_API_DEPENDS.wasi-compiler-rt+= wasi-compiler-rt>=13.0.1
|
||||
BUILDLINK_PKGSRCDIR.wasi-compiler-rt?= ../../lang/wasi-compiler-rt
|
||||
|
||||
.endif # WASI_COMPILER_RT_BUILDLINK3_MK
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: buildlink3.mk,v 1.1 2021/12/19 14:12:20 ryoon Exp $
|
||||
# $NetBSD: buildlink3.mk,v 1.2 2022/06/04 00:34:31 gutteridge Exp $
|
||||
|
||||
BUILDLINK_TREE+= wasi-libcxx
|
||||
|
||||
|
@ -7,7 +7,9 @@ BUILDLINK_DEPMETHOD.wasi-libcxx?= build
|
|||
.if !defined(WASI_LIBCXX_BUILDLINK3_MK)
|
||||
WASI_LIBCXX_BUILDLINK3_MK:=
|
||||
|
||||
BUILDLINK_API_DEPENDS.wasi-libcxx+= wasi-libcxx>=13.0.0
|
||||
# This exact version must be kept in sync with llvm, or firefox
|
||||
# minimum build dependencies will be incorrect.
|
||||
BUILDLINK_API_DEPENDS.wasi-libcxx+= wasi-libcxx>=13.0.1
|
||||
BUILDLINK_PKGSRCDIR.wasi-libcxx?= ../../lang/wasi-libcxx
|
||||
|
||||
.endif # WASI_LIBCXX_BUILDLINK3_MK
|
||||
|
|
Loading…
Reference in a new issue