diff options
-rw-r--r-- | net-libs/rpcsvc-proto/rpcsvc-proto-1.4.3-r1.ebuild | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net-libs/rpcsvc-proto/rpcsvc-proto-1.4.3-r1.ebuild b/net-libs/rpcsvc-proto/rpcsvc-proto-1.4.3-r1.ebuild index 68a3bdb3e02f..f7687c8b7eca 100644 --- a/net-libs/rpcsvc-proto/rpcsvc-proto-1.4.3-r1.ebuild +++ b/net-libs/rpcsvc-proto/rpcsvc-proto-1.4.3-r1.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit toolchain-funcs + DESCRIPTION="rpcsvc protocol definitions from glibc" HOMEPAGE="https://github.com/thkukuk/rpcsvc-proto" SRC_URI="https://github.com/thkukuk/rpcsvc-proto/releases/download/v${PV}/${P}.tar.xz" @@ -21,7 +23,7 @@ src_prepare() { # Use ${CHOST}-cpp, not 'cpp': bug #718138 # Ideally we should use @CPP@ but rpcgen makes it hard to use '${CHOST}-gcc -E' - sed -i -s "s/CPP = \"cpp\";/CPP = \"${CHOST}-cpp\";/" rpcgen/rpc_main.c || die + sed -i -s "s/CPP = \"cpp\";/CPP = \"$(tc-getPROG CPP cpp)\";/" rpcgen/rpc_main.c || die } src_install() { |