Put C*FLAGS into CONFIGURE_ENV instead of assigning it directly. This

allows configure-run test programs to find the right include files and
libraries.

Breakage reported by:	many
Fix submitted by:	adamw
This commit is contained in:
Dima Dorfman 2003-10-17 09:11:39 +00:00
parent bb01be3ddb
commit ca0481961e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=91498
2 changed files with 4 additions and 3 deletions

View file

@ -25,10 +25,10 @@ MAN8= dictd.8
USE_REINPLACE= yes
USE_BISON= yes
USE_LIBTOOL= yes
CFLAGS+= -I${PREFIX}/include
CONFIGURE_ARGS= --with-etcdir=${PREFIX}/etc --with-cflags="${CFLAGS}" \
--without-local-zlib
CONFIGURE_ENV= CFLAGS="${CFLAGS}"
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
USE_GMAKE= yes
ALL_TARGET= dictd dictzip

View file

@ -21,9 +21,10 @@ LIB_DEPENDS= ltdl.4:${PORTSDIR}/devel/libltdl
USE_BISON= yes
USE_REINPLACE= yes
USE_LIBTOOL_VER= 14
CFLAGS+= -I${PREFIX}/include
CONFIGURE_ARGS= --without-local-zlib --with-cflags="${CFLAGS}" \
--with-etcdir=${PREFIX}/etc
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
USE_GMAKE= yes
ALL_TARGET= dict
INSTALL_TARGET= install.dict