]> granicus.if.org Git - handbrake/commitdiff
build: fix building with MinGW.
authorRodeo <tdskywalker@gmail.com>
Tue, 10 Dec 2013 22:19:44 +0000 (22:19 +0000)
committerRodeo <tdskywalker@gmail.com>
Tue, 10 Dec 2013 22:19:44 +0000 (22:19 +0000)
Some contribs don't like gnu99 when building with a MinGW toolset.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5925 b64f7644-9d1e-0410-96f1-a4d463321fa5

contrib/a52dec/module.defs
contrib/libiconv/module.defs
contrib/mpeg2dec/module.defs

index 5f53fa0cf52500806c6e7c93136fabd60106c7fd..b185f8a61966a67ac7e7f3d62a965686a12aff00 100644 (file)
@@ -6,3 +6,8 @@ A52DEC.EXTRACT.tarbase = a52dec
 A52DEC.INSTALL.strip = liba52.a
 
 A52DEC.CONFIGURE.bootstrap = rm -fr aclocal.m4 autom4te.cache; autoreconf -fiv;
+
+# this contrib will not build under MinGW with -std=gnu99
+ifeq (1-mingw,$(BUILD.cross)-$(BUILD.system))
+    A52DEC.GCC.args.c_std =
+endif
index d1781cc60b89dae9a7280a4d2213e5c0be9c137f..391361f26018070711f054db481299cc2edf548f 100644 (file)
@@ -2,3 +2,8 @@ $(eval $(call import.MODULE.defs,LIBICONV,libiconv))
 $(eval $(call import.CONTRIB.defs,LIBICONV))
 
 LIBICONV.FETCH.url = http://download.handbrake.fr/handbrake/contrib/libiconv-1.13.tar.bz2
+
+# this contrib will not build under MinGW with -std=gnu99
+ifeq (1-mingw,$(BUILD.cross)-$(BUILD.system))
+    LIBICONV.GCC.args.c_std =
+endif
index 9a53134cb95a1b3e78ba6897c793ac0b9494fc4a..5fcf8e1847449e8e34258cede89bff6be551d236 100644 (file)
@@ -10,3 +10,8 @@ ifeq (darwin,$(BUILD.system))
 endif
 
 MPEG2DEC.CONFIGURE.extra = --disable-sdl --without-x
+
+# this contrib will not build under MinGW with -std=gnu99
+ifeq (1-mingw,$(BUILD.cross)-$(BUILD.system))
+    MPEG2DEC.GCC.args.c_std =
+endif