package/ctorrent: fix static builds with threads
PATCH 1/1 package/ctorrent: fix static builds with threads
Fix static linking with enabled threads for some toolchains
./arm-buildroot-uclinux-uclibcgnueabi/lib/libstdc++.a(guard.o): In function `(anonymous namespace)::get_static_cond()':
guard.cc:(.text._ZN12_GLOBAL__N_115get_static_condEv+0x6): undefined reference to `pthread_once'
--- package/ctorrent/ctorrent.mk | 4 ++++ 1 file changed, 4 insertions(+)
package/ctorrent/ctorrent.mk +4 -0
@@ -16,4 +16,8 @@ else CTORRENT_CONF_OPTS += --with-ssl=no endif +ifeq ($(BR2_STATIC_LIBS)$(BR2_TOOLCHAIN_HAS_THREADS),yy) +CTORRENT_CONF_OPTS += LIBS=-pthread +endif + $(eval $(autotools-package))
Signature · 1 line
2.7.4
PATCH 1/1 package/ctorrent: fix static builds with threads
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Olaf" == Olaf Rempel <[email protected]> writes:
Fix static linking with enabled threads for some toolchains ./arm-buildroot-uclinux-uclibcgnueabi/lib/libstdc++.a(guard.o): In
function `(anonymous namespace)::get_static_cond()':
guard.cc:(.text._ZN12_GLOBAL__N_115get_static_condEv+0x6): undefined reference to `pthread_once'Signed-off-by Olaf Rempel <[email protected]>
Thanks, but this is really a toolchain error with uClibc as ctorrent doesn't use pthread. With the recently released uClibc-ng 1.0.18 this is now fixed, so this is now fixed and I've marked this patch as rejected.
Signature · 1 line
Bye, Peter Korsgaard