e88b25f1b4a7527867779be2995f9092c48996a2
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / ffmpeg / 0016-ranlib.patch
1 Fix ranlib check when cross-compiling
2
3 Without this patch /usr/bin/ranlib is tested for "-D", not ranlib from the
4 cross-compiler suite being in use.
5
6 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
7
8 diff -uNr ffmpeg-2.6.2.org/configure ffmpeg-2.6.2/configure
9 --- ffmpeg-2.6.2.org/configure  2015-04-12 00:47:55.000000000 +0200
10 +++ ffmpeg-2.6.2/configure      2015-04-16 21:53:24.313202517 +0200
11 @@ -2719,11 +2719,6 @@
12  nm_default="nm -g"
13  objformat="elf"
14  pkg_config_default=pkg-config
15 -if ranlib 2>&1 | grep -q "\-D "; then
16 -    ranlib_default="ranlib -D"
17 -else
18 -    ranlib_default="ranlib"
19 -fi
20  strip_default="strip"
21  yasmexe_default="yasm"
22  windres_default="windres"
23 @@ -3001,6 +2996,12 @@
24          die "Must specify target arch and OS when cross-compiling"
25  fi
26  
27 +if "${cross_prefix}ranlib" 2>&1 | grep -q "\-D "; then
28 +    ranlib_default="ranlib -D"
29 +else
30 +    ranlib_default="ranlib"
31 +fi
32 +
33  test -n "$valgrind" && toolchain="valgrind-memcheck"
34  
35  case "$toolchain" in