Fix build with -O2 on 6.x

This commit is contained in:
Michael Johnson 2004-12-15 10:47:45 +00:00
parent 2bcc063df5
commit 71c537e275
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=124094

View file

@ -31,12 +31,12 @@ MLINKS= mpgtx.1 mpgcat.1 \
.include <bsd.port.pre.mk>
.if ${OSVERSION} > 600000
CFLAGS+= -O
CFLAGS+= -fno-unit-at-a-time
.endif
pre-patch:
@${REINPLACE_CMD} -e 's|CFLAGS=|CFLAGS\+=|g ; \
s|\$$cflags \$$optimization_cflags|$$cflags|g ; \
s|\$$cflags \$$optimization_cflags|${CFLAGS}|g ; \
s|g++|${CXX}|g; s|-pedantic||' ${WRKSRC}/configure
do-install: