From ad8b849b12c99085c5f1205f1410042fb5bc5897 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 31 Jul 2016 12:17:16 +0200 Subject: [PATCH] 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 Tested-by: Romain Naour Signed-off-by: Thomas Petazzoni --- .../0001-do-not-match-nios2-as-os2.patch | 16 ++++++++++++++++ package/libdvdnav/libdvdnav.mk | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 package/libdvdnav/0001-do-not-match-nios2-as-os2.patch 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 + +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)) -- 2.30.2