sys-apps/xinetd: Fix build with libtirpc, bug 630102
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Wed, 1 Nov 2017 18:47:47 +0000 (19:47 +0100)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Wed, 1 Nov 2017 18:48:08 +0000 (19:48 +0100)
Closes: https://bugs.gentoo.org/630102
Package-Manager: Portage-2.3.13, Repoman-2.3.4

sys-apps/xinetd/xinetd-2.3.15-r3.ebuild

index e0667ddfa98b660471db6c44764f4c48cda46933..b22a4d57198e0cc6d07ced32d911fcfcb03b6e84 100644 (file)
@@ -30,11 +30,13 @@ src_prepare() {
 }
 
 src_configure() {
-       if ! use rpc ; then
+       tc-export AR PKG_CONFIG
+       if use rpc ; then
+               append-cflags $(${PKG_CONFIG} --cflags libtirpc)
+       else
                append-cppflags -DNO_RPC
                export ac_cv_header_{rpc_{rpc,rpcent,pmap_clnt},netdb}_h=no
        fi
-       tc-export AR PKG_CONFIG
        LIBS=$(${PKG_CONFIG} --libs libtirpc) \
        econf \
                $(use_with tcpd libwrap) \