Files
gentoo/dev-libs/libfilezilla/files/libfilezilla-0.37.1-pthread.patch
Yixun Lan 5de5b89352 dev-libs/libfilezilla: use -pthread to fix atomic issue
the -pthread flag will expand link option "-latomic" in RISC-V platfrom,
so will effectively fix the problem.

Closes: https://bugs.gentoo.org/837740
Upstream report: https://trac.filezilla-project.org/ticket/12699

Signed-off-by: Yixun Lan <dlan@gentoo.org>
2022-04-20 08:36:53 +08:00

14 lines
371 B
Diff

diff --git a/configure.ac b/configure.ac
index 14bb5d0..da45769 100644
--- a/configure.ac
+++ b/configure.ac
@@ -120,7 +120,7 @@ AC_CHECK_DECLS([pthread_condattr_setclock], [], [], [[#include <pthread.h>]])
if test "$windows" = "1"; then
libdeps="-lws2_32"
else
- libdeps=-lpthread
+ libdeps=-pthread
CHECK_ICONV([libdeps="$libdeps -liconv"])
CHECK_RANDOM