]> git.99rst.org Git - openwrt-packages.git/commit
libtorrent: stop discarding the target build flags
authorDaniel Golle <redacted>
Mon, 14 Sep 2026 15:46:07 +0000 (16:46 +0100)
committerDaniel Golle <redacted>
Tue, 15 Sep 2026 17:08:12 +0000 (18:08 +0100)
commitae34d29eb6b31fd08c9568fe39fa95be29c4812e
tree55d456fe928c4809eefc38fe01f1eab03637c43e
parent36c4c3f9d06584b2e4757de4ec1751901cfdb93c
libtorrent: stop discarding the target build flags

CONFIGURE_VARS is assigned rather than appended to, which discards the
default from package-defaults.mk: the cross compiler settings and the
CFLAGS, CXXFLAGS, CPPFLAGS and LDFLAGS the build system passes. The
library is configured with autoconf's own -g -O2 and built for the
toolchain's default architecture instead, without the target CPU flags,
the hardening flags and -ffile-prefix-map. On x86/geode that also costs
the 64-bit atomics: at the default -march=i486 the compiler cannot
inline them and emits __atomic_load_8 and __atomic_store_8 calls, so
every binary linking the static library needs libatomic.

Fixes: 13a058bed6c0 ("libtorrent: update to 0.15.3")
Signed-off-by: Daniel Golle <redacted>
libs/libtorrent/Makefile
git clone https://git.99rst.org/PROJECT