libdvdnav: fix nios2 cross-compile

The host is misdetected as OS/2.

Fixes:
http://autobuild.buildroot.net/results/d5b30d6b5463928ded1a1c1f1f5345a726f6ffaf/
http://autobuild.buildroot.net/results/917041c7165093f44a5d3b4a5ba56a3d1b59e456/
http://autobuild.buildroot.net/results/dcfc53b6fc25210cf70a1abf0e24b85f0d971101/
http://autobuild.buildroot.net/results/79109d06183efa17f6f68c1ea78cbd9927c5c46e/

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Tested-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Waldemar Brodkorb 2016-07-31 12:17:16 +02:00 committed by Thomas Petazzoni
parent 8632170db8
commit ad8b849b12
2 changed files with 18 additions and 0 deletions

View File

@ -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

View File

@ -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))