The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / libdvdnav / 0001-fix-os2-support.patch
1 configure: fix build on NIOS II platform
2
3 NIOS II is a CPU architecture from Altera, which uses 'nios2' as the
4 architecture part of the tuple. Unfortunately, 'nios2' matches the
5 current '*os2*' test done by libdvdnav's configure script to detect
6 the OS/2 operating system. This leads to build issues as the build
7 process of libdvdnav then tries to use OS/2 specific compiler
8 options, that do not exist in the gcc used for Linux/NIOS2.
9
10 To fix this, this patch makes the test for OS/2 a little bit more
11 specific: in the case of the OS/2 operating system, the OS part of the
12 tuple contains just 'os2' (confirmed by looking at config.guess and
13 config.sub in the gnuconfig project). So using '*-os2-*' will properly
14 match the OS/2 operating system but not the NIOS II architecture.
15
16 Upstream-status: not needed, newer upstream versions no longer have
17                  this test
18 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
19
20 Index: b/configure.ac
21 ===================================================================
22 --- a/configure.ac
23 +++ b/configure.ac
24 @@ -166,7 +166,7 @@
25    *cygwin*)
26      LDFLAGS="-no-undefined $LDFLAGS"
27      ;;
28 -  *os2*)
29 +  *-os2-*)
30      LDFLAGS="-no-undefined -Zbin-files $LDFLAGS"
31      ;;
32    *)