summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/libdvdnav/0001-do-not-match-nios2-as-os2.patch16
-rw-r--r--package/libdvdnav/libdvdnav.mk2
2 files changed, 18 insertions, 0 deletions
diff --git a/package/libdvdnav/0001-do-not-match-nios2-as-os2.patch b/package/libdvdnav/0001-do-not-match-nios2-as-os2.patch
new file mode 100644
index 0000000000..27030bb239
--- /dev/null
+++ b/package/libdvdnav/0001-do-not-match-nios2-as-os2.patch
@@ -0,0 +1,16 @@
+Fix misdetection while nios2 cross-compile
+
+Signed-off-bye: Waldemar Brodkorb <wbx@openadk.org>
+
+diff -Nur libdvdnav-5.0.3.orig/configure.ac libdvdnav-5.0.3/configure.ac
+--- libdvdnav-5.0.3.orig/configure.ac 2015-01-27 16:57:43.000000000 +0100
++++ libdvdnav-5.0.3/configure.ac 2016-07-31 11:48:09.312947473 +0200
+@@ -73,7 +73,7 @@
+ [*mingw32* | *cygwin*], [AC_CHECK_FUNCS(gettimeofday)])
+
+ AS_CASE([$host],
+- [*os2*], [LDFLAGS="$LDFLAGS -no-undefined"])
++ [*-os2*], [LDFLAGS="$LDFLAGS -no-undefined"])
+
+ dnl ---------------------------------------------
+ dnl threads
diff --git a/package/libdvdnav/libdvdnav.mk b/package/libdvdnav/libdvdnav.mk
index ff5ae0931f..b53f0c821b 100644
--- a/package/libdvdnav/libdvdnav.mk
+++ b/package/libdvdnav/libdvdnav.mk
@@ -11,5 +11,7 @@ LIBDVDNAV_INSTALL_STAGING = YES
LIBDVDNAV_DEPENDENCIES = libdvdread host-pkgconf
LIBDVDNAV_LICENSE = GPLv2+
LIBDVDNAV_LICENSE_FILES = COPYING
+# 0001-do-not-match-nios2-as-os2.patch
+LIBDVDNAV_AUTORECONF = YES
$(eval $(autotools-package))
OpenPOWER on IntegriCloud