From 5de5b893520423567e28dee634f082134670840e Mon Sep 17 00:00:00 2001 From: Yixun Lan Date: Wed, 20 Apr 2022 08:20:52 +0800 Subject: 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 --- .../libfilezilla/files/libfilezilla-0.37.1-pthread.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 dev-libs/libfilezilla/files/libfilezilla-0.37.1-pthread.patch (limited to 'dev-libs/libfilezilla/files') diff --git a/dev-libs/libfilezilla/files/libfilezilla-0.37.1-pthread.patch b/dev-libs/libfilezilla/files/libfilezilla-0.37.1-pthread.patch new file mode 100644 index 000000000000..6a40cc69c52e --- /dev/null +++ b/dev-libs/libfilezilla/files/libfilezilla-0.37.1-pthread.patch @@ -0,0 +1,13 @@ +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 ]]) + if test "$windows" = "1"; then + libdeps="-lws2_32" + else +- libdeps=-lpthread ++ libdeps=-pthread + CHECK_ICONV([libdeps="$libdeps -liconv"]) + + CHECK_RANDOM -- cgit v1.2.3-65-gdbad