From 025dd6001b99206a4318b43030bb570fd8a80b27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Gon=C3=A7alves?= Date: Thu, 10 Nov 2016 19:18:25 +0000 Subject: [PATCH] libav: add host install, add libs (*.so) to sysroot of toolchain. --- rules/libav/default.bash | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/rules/libav/default.bash b/rules/libav/default.bash index a0b9c57..3c2e395 100644 --- a/rules/libav/default.bash +++ b/rules/libav/default.bash @@ -15,9 +15,10 @@ md5=\ configure() { + $cmd_mkdir build ./configure \ --sysroot="$cfg_dir_toolchain_sysroot" \ - --prefix="$cfg_dir_rootfs/usr" \ + --prefix="$cfg_dir_builds/libav/libav-$version/build/" \ --cross-prefix="$cfg_target_canonical-" \ --target-os="linux" \ --enable-memalign-hack \ @@ -32,8 +33,14 @@ build() $cmd_make } +host_install() +{ + $cmd_make install + $cmd_cp -r "build/"* "$cfg_dir_toolchain_sysroot/usr/" +} + target_install() { - $cmd_make \ - install + $cmd_cp -r "build/"* "$cfg_dir_rootfs/usr/" + }