Skip to content

Commit

Permalink
net-nntp/tin: fix build when $CPPFLAGS is set
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
vapier committed Dec 1, 2023
1 parent 827f442 commit 08eba85
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions net-nntp/tin/tin-2.6.2-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 08eba85

Please sign in to comment.