ffmpeg: update rule to copy libs to both sysroot.

This commit is contained in:
Pedro Gonçalves 2017-06-01 15:00:34 +01:00
parent bd54a9ea61
commit f939911a81

View File

@ -15,13 +15,14 @@ md5=\
configure() configure()
{ {
$cmd_mkdir build mkdir -p ../build
./configure \ ./configure \
--sysroot="$cfg_dir_toolchain_sysroot" \ --sysroot="$cfg_dir_toolchain_sysroot" \
--prefix="$cfg_dir_builds/ffmpeg/ffmpeg-$version/build/" \ --prefix="$cfg_dir_rootfs/usr" \
--incdir="$cfg_dir_toolchain_sysroot/usr/include" \ --incdir="$cfg_dir_toolchain_sysroot/usr/include" \
--enable-cross-compile \ --enable-cross-compile \
--cross-prefix="$cfg_target_canonical-" \ --cross-prefix="$cfg_target_canonical-" \
--libdir="$cfg_dir_builds/ffmpeg/build" \
--target-os="linux" \ --target-os="linux" \
--enable-shared \ --enable-shared \
--disable-static \ --disable-static \
@ -40,13 +41,16 @@ host_install()
$cmd_make \ $cmd_make \
LIBDIR="$cfg_dir_toolchain_sysroot/usr/lib" \ LIBDIR="$cfg_dir_toolchain_sysroot/usr/lib" \
install-headers install-headers
$cmd_make install
$cmd_cp -r "build/"* "$cfg_dir_toolchain_sysroot/usr/" $cmd_make \
install-libs
} }
target_install() target_install()
{ {
$cmd_make \ $cmd_make \
install-libs install-libs
$cmd_cp -r "build/"* "$cfg_dir_rootfs/usr/"
$cmd_cp -r "$cfg_dir_builds/ffmpeg/build/"* "$cfg_dir_rootfs/usr/lib/"
$cmd_cp -r "$cfg_dir_builds/ffmpeg/build/"* "$cfg_dir_toolchain_sysroot/usr/lib/"
} }