Set CPP in configure environment to avoid configure getting a bad

value which in turn caused a build failure on .F files which cpp can
process but gcc -E can't (unless you have a gcc with fortran installed)
This commit is contained in:
dmcmahill 2011-01-22 18:25:47 +00:00
parent a881b3076a
commit a6d4c11e5d

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.15 2010/07/30 10:36:23 asau Exp $
# $NetBSD: Makefile,v 1.16 2011/01/22 18:25:47 dmcmahill Exp $
#
DISTNAME= tnt-1.2.2
@ -22,6 +22,13 @@ USE_LANGUAGES= c c++ fortran77
TEX_DEPMOD= build
TEX_ACCEPTED= teTeX3
# without this, configure ends up using 'gcc -E' for CPP and
# passing that down via an environment variable to f2c-f77 which
# in turn ends up feeding a .F file to gcc -E that fails due to
# fortran not being a configured language. This is what happens on
# a stock NetBSD-5.1 install.
CONFIGURE_ENV+= CPP=${CPP}
post-patch:
${MV} ${WRKSRC}/tnt ${WRKSRC}/tnt-mmtl
cd ${WRKSRC}/bem && aclocal