summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-libs/libsepol/libsepol-9999.ebuild')
-rw-r--r--sys-libs/libsepol/libsepol-9999.ebuild17
1 files changed, 10 insertions, 7 deletions
diff --git a/sys-libs/libsepol/libsepol-9999.ebuild b/sys-libs/libsepol/libsepol-9999.ebuild
index 4cb9db630532..3266c276a3fa 100644
--- a/sys-libs/libsepol/libsepol-9999.ebuild
+++ b/sys-libs/libsepol/libsepol-9999.ebuild
@@ -32,19 +32,22 @@ src_prepare() {
multilib_copy_sources
}
+my_make() {
+ emake \
+ PREFIX="${EPREFIX}/usr" \
+ LIBDIR="\$(PREFIX)/$(get_libdir)" \
+ SHLIBDIR="${EPREFIX}/$(get_libdir)" \
+ "${@}"
+}
+
multilib_src_compile() {
tc-export CC AR RANLIB
local -x CFLAGS="${CFLAGS} -fno-semantic-interposition"
- emake \
- LIBDIR="\$(PREFIX)/$(get_libdir)" \
- SHLIBDIR="/$(get_libdir)"
+ my_make
}
multilib_src_install() {
- emake DESTDIR="${D}" \
- LIBDIR="\$(PREFIX)/$(get_libdir)" \
- SHLIBDIR="/$(get_libdir)" \
- install
+ my_make DESTDIR="${D}" install
}