From 08eba8565709719f041022c35b828a9b7d5d1b70 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 1 Dec 2023 06:18:46 -0500 Subject: net-nntp/tin: fix build when $CPPFLAGS is set The configure script defaults BUILD_CPPFLAGS to $CPPFLAGS, and if that is set, omits a required -I$srcdir/include flag from the build causing it to not find local tin.h headers. Append it ourselves. Signed-off-by: Mike Frysinger --- net-nntp/tin/tin-2.6.2-r1.ebuild | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'net-nntp/tin') diff --git a/net-nntp/tin/tin-2.6.2-r1.ebuild b/net-nntp/tin/tin-2.6.2-r1.ebuild index c550f29e48bd..631a6ec8091d 100644 --- a/net-nntp/tin/tin-2.6.2-r1.ebuild +++ b/net-nntp/tin/tin-2.6.2-r1.ebuild @@ -52,6 +52,11 @@ src_configure() { tc-export AR CC RANLIB tc-export_build_env + # The build incorrectly discards its local -I if $CPPFLAGS is set. + if [[ -n ${BUILD_CPPFLAGS} ]]; then + BUILD_CPPFLAGS+=' -I$(INCDIR)' + fi + local myeconfargs=( $(use_enable cancel-locks) $(use_with cancel-locks canlock) -- cgit v1.2.3-65-gdbad