commit:     ef0de18a7e211af5479a5c1799df3b8daee2821f
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 23 01:29:00 2020 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sun Aug 23 01:29:21 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef0de18a

dev-libs/libfilezilla: fix 32-bit build

Links against libatomic on 32-bit non-x86 arches.

Closes: https://bugs.gentoo.org/727652
Package-Manager: Portage-3.0.3, Repoman-3.0.0
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 dev-libs/libfilezilla/libfilezilla-0.24.0.ebuild | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/dev-libs/libfilezilla/libfilezilla-0.24.0.ebuild 
b/dev-libs/libfilezilla/libfilezilla-0.24.0.ebuild
index b727fb881b7..06fb1f38b74 100644
--- a/dev-libs/libfilezilla/libfilezilla-0.24.0.ebuild
+++ b/dev-libs/libfilezilla/libfilezilla-0.24.0.ebuild
@@ -33,6 +33,15 @@ pkg_pretend() {
        fi
 }
 
+src_configure() {
+       if use ppc || use arm || use hppa; then
+               # bug 727652
+               append-libs -latomic
+       fi
+
+       default
+}
+
 src_install() {
        default
        find "${ED}" -type f \( -name "*.a" -o -name "*.la" \) -delete || die

Reply via email to