From ed930bfc3411c436d79cc0fd8ee86211fa3bf80a Mon Sep 17 00:00:00 2001 From: arved Date: Wed, 3 Nov 2004 13:58:08 +0000 Subject: Add -O to CFLAGS on FreeBSD 6.x to work around build failuer with -O2. Reported by: pointyhat --- multimedia/mpgtx/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'multimedia/mpgtx') diff --git a/multimedia/mpgtx/Makefile b/multimedia/mpgtx/Makefile index 439cc04e4486..782b2361fdec 100644 --- a/multimedia/mpgtx/Makefile +++ b/multimedia/mpgtx/Makefile @@ -28,6 +28,12 @@ MLINKS= mpgtx.1 mpgcat.1 \ mpgtx.1 mpgjoin.1 \ mpgtx.1 mpgsplit.1 +.include + +.if ${OSVERSION} > 600000 +CFLAGS+= -O +.endif + pre-patch: @${REINPLACE_CMD} -e 's|CFLAGS=|CFLAGS\+=|g ; \ s|\$$cflags \$$optimization_cflags|$$cflags|g ; \ @@ -41,4 +47,4 @@ do-install: ${INSTALL_MAN} ${WRKSRC}/man/mpgtx.1 ${MANPREFIX}/man/man1 ${INSTALL_MAN} ${WRKSRC}/man/tagmp3.1 ${MANPREFIX}/man/man1 -.include +.include -- cgit