summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-01-17 21:44:05 +0000
committerSam James <sam@gentoo.org>2023-01-17 23:18:56 +0000
commit26d1d8ad875885a68b3f0de84c7f435bc57af2a5 (patch)
tree7e1cefab5f940056648e3cd55ae5d5d4bea60798 /sys-process
parentgames-engines/residualvm: Drop last-rited package (diff)
downloadgentoo-26d1d8ad875885a68b3f0de84c7f435bc57af2a5.tar.gz
gentoo-26d1d8ad875885a68b3f0de84c7f435bc57af2a5.tar.bz2
gentoo-26d1d8ad875885a68b3f0de84c7f435bc57af2a5.zip
sys-process/lsof: fix finding RPC headers
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-process')
-rw-r--r--sys-process/lsof/lsof-4.97.0.ebuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys-process/lsof/lsof-4.97.0.ebuild b/sys-process/lsof/lsof-4.97.0.ebuild
index ad7040fcc803..b99b7b47efa2 100644
--- a/sys-process/lsof/lsof-4.97.0.ebuild
+++ b/sys-process/lsof/lsof-4.97.0.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit autotools flag-o-matic
+inherit autotools flag-o-matic toolchain-funcs
MY_P="${P/-/_}"
DESCRIPTION="Lists open files for running Unix processes"
@@ -38,6 +38,10 @@ src_configure() {
export ac_cv_header_rpc_rpc_h=$(usex rpc)
export ac_cv_header_selinux_selinux_h=$(usex selinux)
+ if use rpc ; then
+ append-cppflags $(tc-getPKG_CONFIG) libtirpc --cflags)
+ fi
+
[[ ${CHOST} == *-solaris2.11 ]] && append-cppflags -DHAS_PAD_MUTEX
econf