sys-fs/mtools: fix musl build
authorMarty Plummer <ntzrmtthihu777@gmail.com>
Sat, 12 Aug 2017 05:43:06 +0000 (00:43 -0500)
committerThomas Deutschmann <whissi@gentoo.org>
Sun, 17 Sep 2017 00:41:48 +0000 (02:41 +0200)
Closes https://bugs.gentoo.org/show_bug.cgi?id=626948

Package-Manager: Portage-2.3.6, Repoman-2.3.3

sys-fs/mtools/mtools-4.0.18-r2.ebuild
sys-fs/mtools/mtools-4.0.18.ebuild

index c58be8b13a784b2f94f03a67e9f25a44cddd8654..b24e3026f32b68abb92343ee465e5df400496752 100644 (file)
@@ -36,7 +36,7 @@ src_prepare() {
 
 src_configure() {
        # 447688
-       use elibc_glibc || append-libs iconv
+       use !elibc_glibc && use !elibc_musl && append-libs "-liconv"
        econf \
                --sysconfdir="${EPREFIX}"/etc/mtools \
                $(use_with X x)
index bec1d577505aeb579f1d4077ca43a3f97d0550eb..20531ff7b2d858207aca6e3ce755f81f69b29819 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="4"
@@ -32,7 +32,7 @@ src_prepare() {
 
 src_configure() {
        # 447688
-       use elibc_glibc || append-libs iconv
+       use !elibc_glibc && use !elibc_musl && append-libs "-liconv"
        econf \
                --sysconfdir="${EPREFIX}"/etc/mtools \
                $(use_with X x)