diff options
author | James Le Cuirot <chewi@gentoo.org> | 2024-07-19 10:33:09 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2024-07-19 10:57:00 +0100 |
commit | 490e126ae54a5192c9447158a6aeec608c065fed (patch) | |
tree | 1cbfc6eefaa7190527e83cd3b0f83ea139859b6d /sys-libs/libsepol/libsepol-9999.ebuild | |
parent | dev-ruby/sinatra: fix tests (diff) | |
download | gentoo-490e126ae54a5192c9447158a6aeec608c065fed.tar.gz gentoo-490e126ae54a5192c9447158a6aeec608c065fed.tar.bz2 gentoo-490e126ae54a5192c9447158a6aeec608c065fed.zip |
sys-libs/libsepol: Fix installation on prefix for 3.7
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'sys-libs/libsepol/libsepol-9999.ebuild')
-rw-r--r-- | sys-libs/libsepol/libsepol-9999.ebuild | 17 |
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 } |