From 24cd400625a0c9da4def3a83435dd12a09bb3e51 Mon Sep 17 00:00:00 2001 From: reed Date: Sat, 11 Mar 2006 04:08:47 +0000 Subject: This is to fix PR 30267. (I have noticed same problem.) The build needs optimization. So if CFLAGS doesn't contain at least -O then add it. (Thank you Juan for idea.) On the tech-pkg-ja@jp.NetBSD.org list, I was told (19 Dec 2005): > This change can be accepted when judged only from my environment (i386), > since the expression of "if empty(CFLAGS:M-O*)" is evaluated > after setting of the environment variable (-O2). > However, I do not have the positive proof whether this expression is evaluated > after setting of the environment variable (-O2), in all environments. So hopefully this doesn't break for anyone else. --- multimedia/libdv/Makefile.common | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'multimedia') diff --git a/multimedia/libdv/Makefile.common b/multimedia/libdv/Makefile.common index 36f6b1d69e3..cce378486e7 100644 --- a/multimedia/libdv/Makefile.common +++ b/multimedia/libdv/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.4 2006/03/09 21:04:45 jlam Exp $ +# $NetBSD: Makefile.common,v 1.5 2006/03/11 04:08:47 reed Exp $ DISTNAME= libdv-0.104 CATEGORIES= multimedia @@ -30,6 +30,9 @@ CONFIGURE_ARGS+= --disable-xv .endif LIBS+= ${LIBOSSAUDIO} +.if empty(CFLAGS:M-O*) +CFLAGS+= -O +.endif .include "../../converters/libiconv/buildlink3.mk" .include "../../devel/gettext-lib/buildlink3.mk" -- cgit v1.2.3