We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0676550 commit 918c1eeCopy full SHA for 918c1ee
packages/binutils-libs/build.sh
@@ -49,6 +49,14 @@ termux_step_pre_configure() {
49
rm -rf $TERMUX_HOSTBUILD_MARKER
50
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"
60
61
if [ $TERMUX_ARCH_BITS = 32 ]; then
62
export LIB_PATH="${TERMUX_PREFIX}/lib:/system/lib"
0 commit comments