summaryrefslogtreecommitdiffstats
path: root/package/libdvdnav/libdvdnav-01-fix-os2-support.patch
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-05-17 10:28:08 +0200
committerPeter Korsgaard <peter@korsgaard.com>2014-05-17 11:34:05 +0200
commit503f76ae3ded088169c795d70b70bb997e53d9b8 (patch)
tree03ebf62e9cd54ec5d7ec511e1423a613fb9abee9 /package/libdvdnav/libdvdnav-01-fix-os2-support.patch
parentae1df831c0d56aaa88741595963e97aa39ed5961 (diff)
libdvd{nav, read}: add patches to fix build on NIOS II
Fixes: http://autobuild.buildroot.org/results/628/62839c4b2e687b940b97ad61bceb41cd5eb6e17a/build-end.log Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/libdvdnav/libdvdnav-01-fix-os2-support.patch')
-rw-r--r--package/libdvdnav/libdvdnav-01-fix-os2-support.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/package/libdvdnav/libdvdnav-01-fix-os2-support.patch b/package/libdvdnav/libdvdnav-01-fix-os2-support.patch
new file mode 100644
index 000000000..0f75f2fbd
--- /dev/null
+++ b/package/libdvdnav/libdvdnav-01-fix-os2-support.patch
@@ -0,0 +1,32 @@
+configure: fix build on NIOS II platform
+
+NIOS II is a CPU architecture from Altera, which uses 'nios2' as the
+architecture part of the tuple. Unfortunately, 'nios2' matches the
+current '*os2*' test done by libdvdnav's configure script to detect
+the OS/2 operating system. This leads to build issues as the build
+process of libdvdnav then tries to use OS/2 specific compiler
+options, that do not exist in the gcc used for Linux/NIOS2.
+
+To fix this, this patch makes the test for OS/2 a little bit more
+specific: in the case of the OS/2 operating system, the OS part of the
+tuple contains just 'os2' (confirmed by looking at config.guess and
+config.sub in the gnuconfig project). So using '*-os2-*' will properly
+match the OS/2 operating system but not the NIOS II architecture.
+
+Upstream-status: not needed, newer upstream versions no longer have
+ this test
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+Index: b/configure.ac
+===================================================================
+--- a/configure.ac
++++ b/configure.ac
+@@ -166,7 +166,7 @@
+ *cygwin*)
+ LDFLAGS="-no-undefined $LDFLAGS"
+ ;;
+- *os2*)
++ *-os2-*)
+ LDFLAGS="-no-undefined -Zbin-files $LDFLAGS"
+ ;;
+ *)