summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/liba52/liba52/buildcleanup.patch
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2015-10-09 22:59:03 +0200
committerTudor Florea <tudor.florea@enea.com>2015-10-09 22:59:03 +0200
commit972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch)
tree97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-multimedia/liba52/liba52/buildcleanup.patch
downloadpoky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-multimedia/liba52/liba52/buildcleanup.patch')
-rw-r--r--meta/recipes-multimedia/liba52/liba52/buildcleanup.patch89
1 files changed, 89 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/liba52/liba52/buildcleanup.patch b/meta/recipes-multimedia/liba52/liba52/buildcleanup.patch
new file mode 100644
index 0000000000..5168100f3a
--- /dev/null
+++ b/meta/recipes-multimedia/liba52/liba52/buildcleanup.patch
@@ -0,0 +1,89 @@
1It makes much more sense to control our own CFLAGS and avoiding fPIC breaks
2some arches too. Assume we know what we're doing and remove all the messing
3around.
4
5RP 23/2/10
6
7Upstream-Status: Inappropriate [configuration]
8
9Index: a52dec-0.7.4/configure.in
10===================================================================
11--- a52dec-0.7.4.orig/configure.in 2010-02-23 14:51:50.000000000 +0000
12+++ a52dec-0.7.4/configure.in 2010-02-23 14:52:36.000000000 +0000
13@@ -14,62 +14,6 @@
14 AC_PROG_CC
15 AC_PROG_GCC_TRADITIONAL
16
17-if test x"$GCC" = x"yes"; then
18-
19- dnl GCC-specific flags - try to optimize them sometime
20- dnl -Wall -Werror moved to the end to not disturb the configure script
21-
22- dnl -O3
23- changequote(<<,>>)
24- OPT_CFLAGS=`echo "$CFLAGS"|sed "s/-O[0-9]*//g"`
25- changequote([,])
26- OPT_CFLAGS="$OPT_CFLAGS -O3"
27- AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS])
28-
29- dnl -fomit-frame-pointer
30- OPT_CFLAGS="$CFLAGS -fomit-frame-pointer"
31- AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS])
32-
33- dnl arch-specific flags
34- case "$host" in
35- i?86-* | k?-*)
36- case "$host" in
37- i386-*) OPT_CFLAGS="$CFLAGS -mcpu=i386";;
38- i486-*) OPT_CFLAGS="$CFLAGS -mcpu=i486";;
39- i586-*) OPT_CFLAGS="$CFLAGS -mcpu=pentium";;
40- i686-*) OPT_CFLAGS="$CFLAGS -mcpu=pentiumpro";;
41- k6-*) OPT_CFLAGS="$CFLAGS -mcpu=k6";;
42- esac
43- AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS]);;
44- sparc-* | sparc64-*)
45- OPT_CFLAGS="$CFLAGS -mtune=ultrasparc"
46- AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS]);;
47- mips-sgi-irix6.*) dnl do we need to be that specific ?
48- OPT_CFLAGS="$CFLAGS -mabi=64"
49- AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS]);;
50- esac
51-elif test x"$CC" = x"tcc" -a x"`$CC -version 2>&1 | grep TenDRA`" != x""; then
52- dnl TenDRA portability checking compiler
53- TENDRA=yes
54- CFLAGS="-Xp -Yansi -f`pwd`/include/tendra.h -DELIDE_CODE"
55- enable_mlib=no
56- enable_oss=no
57- enable_solaris_audio=no
58-elif test x"$CC" = x"icc" -a x"`$CC -V 2>&1 | grep Intel`" != x""; then
59- dnl Intel C++ compiler
60- CFLAGS="-g -O3 -unroll -ip"
61-else
62- dnl non-gcc flags - we probably need exact configuration triplets here.
63- case "$host" in
64- mips-sgi-irix6.*)
65- OPT_CFLAGS="$CFLAGS -64"
66- AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS]);;
67- sparc-sun-solaris*)
68- OPT_CFLAGS="$CFLAGS -xCC -fast -xO5"
69- AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS]);;
70- esac
71-fi
72-
73 dnl Checks for libtool - this must be done after we set cflags
74 AC_DISABLE_SHARED
75 AC_LIBTOOL_WIN32_DLL
76Index: a52dec-0.7.4/liba52/configure.incl
77===================================================================
78--- a52dec-0.7.4.orig/liba52/configure.incl 2010-02-23 14:51:44.000000000 +0000
79+++ a52dec-0.7.4/liba52/configure.incl 2010-02-23 14:51:59.000000000 +0000
80@@ -1,9 +1,6 @@
81 AC_SUBST([LIBA52_CFLAGS])
82 AC_SUBST([LIBA52_LIBS])
83
84-dnl avoid -fPIC when possible
85-LIBA52_CFLAGS="$LIBA52_CFLAGS -prefer-non-pic"
86-
87 AC_ARG_ENABLE([double],
88 [ --enable-double use double-precision samples])
89 if test x"$enable_double" = x"yes"; then