File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,14 @@ termux_step_pre_configure() {
49
49
rm -rf $TERMUX_HOSTBUILD_MARKER
50
50
51
51
export CPPFLAGS=" $CPPFLAGS -Wno-c++11-narrowing"
52
+ # llvm upgraded a warning to an error, which caused this build (and some
53
+ # others, including the rust toolchain) to fail like so:
54
+ #
55
+ # ld.lld: error: version script assignment of 'LIBCTF_1.0' to symbol 'ctf_label_set' failed: symbol not defined
56
+ # ld.lld: error: version script assignment of 'LIBCTF_1.0' to symbol 'ctf_label_get' failed: symbol not defined
57
+ # These flags restore it to a warning.
58
+ # https://reviews.llvm.org/D135402
59
+ export LDFLAGS=" $LDFLAGS -Wl,--undefined-version"
52
60
53
61
if [ $TERMUX_ARCH_BITS = 32 ]; then
54
62
export LIB_PATH=" ${TERMUX_PREFIX} /lib:/system/lib"
You can’t perform that action at this time.
0 commit comments