diff options
author | reed <reed> | 2006-03-11 04:08:47 +0000 |
---|---|---|
committer | reed <reed> | 2006-03-11 04:08:47 +0000 |
commit | 90dfab4daecce00ac865aa82d376fc1f8b388741 (patch) | |
tree | 8f3dcce19cbb0fa1752a40708ab14d3dbf04ba31 /multimedia/libdv | |
parent | 378743746b42a44e94d1527194d9ea3688cfc4fe (diff) | |
download | pkgsrc-90dfab4daecce00ac865aa82d376fc1f8b388741.tar.gz |
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.
Diffstat (limited to 'multimedia/libdv')
-rw-r--r-- | multimedia/libdv/Makefile.common | 5 |
1 files changed, 4 insertions, 1 deletions
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" |