- make CC aware

- Fix build with gcc295-alpha, by forcing -O0
This commit is contained in:
Dirk Meyer 2004-01-26 19:33:02 +00:00
parent 00e0e025de
commit a62e71dad1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=99215

View File

@ -24,7 +24,7 @@ LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff \
USE_PERL5= yes
USE_REINPLACE= yes
USE_GMAKE= yes
MAKE_ENV= LN="${LN}" RANLIB="${RANLIB}"
MAKE_ENV= CC="${CC}" LN="${LN}" RANLIB="${RANLIB}"
MAKEFILE= GNUmakefile
INSTALL_TARGET= install.bin install.lib install.data install-dev
INSTALLS_SHLIB= yes
@ -38,6 +38,11 @@ MAN1= netpbm.1
# -O causes an ICE in converter/other/exif.c with gcc 3.3.3 on sparc64.
CFLAGS+= -O0
.endif
.if ${ARCH} == "alpha"
.if ${OSVERSION} < 500000
CFLAGS+= -O0
.endif
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \