configure: fix target_os when cross-compiling for arm
authorMichael Olbrich <m.olbrich@pengutronix.de>
Thu, 10 Nov 2016 14:42:19 +0000 (15:42 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 10 Nov 2016 15:30:16 +0000 (17:30 +0200)
For arm 'host_os' is '*-gnueabi' or '*-gnueabihf' so sed needs to cut of
more. Otherwise configuring ffmpeg will fail with "Unknown OS 'linuxeabi'."
or something like that.

https://bugzilla.gnome.org/show_bug.cgi?id=774215

configure.ac

index 17825f0..2a4a57d 100644 (file)
@@ -384,7 +384,7 @@ else
         target_os=darwin
       ;;
       *)
-        target_os=`echo $host_os | sed 's/-gnu//'`
+        target_os=`echo $host_os | sed 's/-gnu.*//'`
       ;;
   esac