sys-libs/libselinux: link to sys-libs/fts-standalone on musl
authorJason Zaman <perfinion@gentoo.org>
Mon, 21 May 2018 06:51:16 +0000 (14:51 +0800)
committerJason Zaman <perfinion@gentoo.org>
Mon, 21 May 2018 09:55:33 +0000 (17:55 +0800)
Package-Manager: Portage-2.3.24, Repoman-2.3.6

sys-libs/libselinux/libselinux-9999.ebuild

index edb830d3fa65556a02f1c94e19cab8e655ca97e6..7b90d5d867badefad5cb8c176eed953236b1ee25 100644 (file)
@@ -36,7 +36,8 @@ RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}:=[${MULTILIB_USEDEP}]
        python? ( ${PYTHON_DEPS} )
        ruby? (
                ruby_targets_ruby23? ( dev-lang/ruby:2.3 )
-       )"
+       )
+       elibc_musl? ( sys-libs/fts-standalone )"
 DEPEND="${RDEPEND}
        virtual/pkgconfig
        python? ( >=dev-lang/swig-2.0.9 )
@@ -56,6 +57,7 @@ multilib_src_compile() {
                SHLIBDIR="/$(get_libdir)" \
                LDFLAGS="-fPIC ${LDFLAGS} -pthread" \
                USE_PCRE2="$(usex pcre2 y n)" \
+               FTS_LDLIBS="$(usex elibc_musl '-lfts' '')" \
                all
 
        if multilib_is_native_abi && use python; then
@@ -65,6 +67,7 @@ multilib_src_compile() {
                                LIBDIR="\$(PREFIX)/$(get_libdir)" \
                                SHLIBDIR="/$(get_libdir)" \
                                USE_PCRE2="$(usex pcre2 y n)" \
+                               FTS_LDLIBS="$(usex elibc_musl '-lfts' '')" \
                                pywrap
                }
                python_foreach_impl building
@@ -81,6 +84,7 @@ multilib_src_compile() {
                                LIBDIR="\$(PREFIX)/$(get_libdir)" \
                                SHLIBDIR="/$(get_libdir)" \
                                USE_PCRE2="$(usex pcre2 y n)" \
+                               FTS_LDLIBS="$(usex elibc_musl '-lfts' '')" \
                                rubywrap
                }
                for RUBYTARGET in ${USE_RUBY}; do