summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodeo <[email protected]>2013-12-05 14:07:39 +0000
committerRodeo <[email protected]>2013-12-05 14:07:39 +0000
commitc6dad1609343dd04b8282a1f761de0f9e2b1f31c (patch)
tree298cbbe74803a59395340b50d8b122bfdf5ea7ac
parent191c1649ce534fbf8375e9db555f8a855e76b9dc (diff)
contrib: fix deprecated GCC compiler options.
-mcpu has been deprecated in favor of -mtune; also, -Wstrict-prototypes was causing build failures on some systems. Patch by icchan. Thanks! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5917 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--contrib/a52dec/A04-modern-gcc-cflags.patch19
-rw-r--r--contrib/mpeg2dec/A03-modern-gcc-cflags.patch37
2 files changed, 56 insertions, 0 deletions
diff --git a/contrib/a52dec/A04-modern-gcc-cflags.patch b/contrib/a52dec/A04-modern-gcc-cflags.patch
new file mode 100644
index 000000000..b88c5275d
--- /dev/null
+++ b/contrib/a52dec/A04-modern-gcc-cflags.patch
@@ -0,0 +1,19 @@
+--- a52dec/configure.in.bak Thu Nov 28 00:00:22 2013
++++ a52dec/configure.in Thu Nov 28 00:03:20 2013
+@@ -34,11 +34,11 @@
+ case "$host" in
+ i?86-* | k?-*)
+ case "$host" in
+- i386-*) OPT_CFLAGS="$CFLAGS -mcpu=i386";;
+- i486-*) OPT_CFLAGS="$CFLAGS -mcpu=i486";;
+- i586-*) OPT_CFLAGS="$CFLAGS -mcpu=pentium";;
+- i686-*) OPT_CFLAGS="$CFLAGS -mcpu=pentiumpro";;
+- k6-*) OPT_CFLAGS="$CFLAGS -mcpu=k6";;
++ i386-*) OPT_CFLAGS="$CFLAGS -mtune=i386";;
++ i486-*) OPT_CFLAGS="$CFLAGS -mtune=i486";;
++ i586-*) OPT_CFLAGS="$CFLAGS -mtune=pentium";;
++ i686-*) OPT_CFLAGS="$CFLAGS -mtune=pentiumpro";;
++ k6-*) OPT_CFLAGS="$CFLAGS -mtune=k6";;
+ esac
+ AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS]);;
+ sparc-* | sparc64-*)
diff --git a/contrib/mpeg2dec/A03-modern-gcc-cflags.patch b/contrib/mpeg2dec/A03-modern-gcc-cflags.patch
new file mode 100644
index 000000000..288a62377
--- /dev/null
+++ b/contrib/mpeg2dec/A03-modern-gcc-cflags.patch
@@ -0,0 +1,37 @@
+--- mpeg2dec/configure.bak Fri Jul 18 10:41:54 2008
++++ mpeg2dec/configure Wed Nov 27 23:04:30 2013
+@@ -4614,7 +4614,7 @@
+ elif test x"$GCC" = x"yes"; then
+
+
+- TRY_CFLAGS="$OPT_CFLAGS -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"
++ TRY_CFLAGS="$OPT_CFLAGS -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"
+ { echo "$as_me:$LINENO: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5
+ echo $ECHO_N "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... $ECHO_C" >&6; }
+ SAVE_CFLAGS="$CFLAGS"
+@@ -4859,11 +4859,11 @@
+ _ACEOF
+
+ case "$host" in
+- i386-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=i386";;
+- i486-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=i486";;
+- i586-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=pentium";;
+- i686-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=pentiumpro";;
+- k6-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=k6";;
++ i386-*) TRY_CFLAGS="$OPT_CFLAGS -mtune=i386";;
++ i486-*) TRY_CFLAGS="$OPT_CFLAGS -mtune=i486";;
++ i586-*) TRY_CFLAGS="$OPT_CFLAGS -mtune=pentium";;
++ i686-*) TRY_CFLAGS="$OPT_CFLAGS -mtune=pentiumpro";;
++ k6-*) TRY_CFLAGS="$OPT_CFLAGS -mtune=k6";;
+ esac
+ { echo "$as_me:$LINENO: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5
+ echo $ECHO_N "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... $ECHO_C" >&6; }
+@@ -5084,7 +5084,7 @@
+ #define ARCH_SPARC
+ _ACEOF
+
+- TRY_CFLAGS="$OPT_CFLAGS -mcpu=ultrasparc -mvis"
++ TRY_CFLAGS="$OPT_CFLAGS -mtune=ultrasparc -mvis"
+ { echo "$as_me:$LINENO: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5
+ echo $ECHO_N "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... $ECHO_C" >&6; }
+ SAVE_CFLAGS="$CFLAGS"