aboutsummaryrefslogtreecommitdiff
path: root/multimedia/libdv/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/libdv/Makefile')
-rw-r--r--multimedia/libdv/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/multimedia/libdv/Makefile b/multimedia/libdv/Makefile
index e98fbca106dc..d5b8d605f309 100644
--- a/multimedia/libdv/Makefile
+++ b/multimedia/libdv/Makefile
@@ -34,6 +34,12 @@ PORTDOCS= AUTHORS COPYING COPYRIGHT ChangeLog NEWS README \
.include <bsd.port.pre.mk>
+# XXX - work around compiler bug
+# Optimizations -O{1,s,2,3} work
+# However, lack of -O{1,s,2,3} or -O0 BREAK the build
+# Therefore, make sure we have AT LEAST -O and avoid -O0
+CONFIGURE_ENV+= CFLAGS="-O ${CFLAGS:N-O0}"
+
.ifndef(WITHOUT_SDL)
USE_SDL= sdl
CONFIGURE_ARGS+= --enable-sdl