summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-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"