From: Victor Martinez Date: Tue, 5 Apr 2011 11:00:51 +0000 (+0000) Subject: src/pkgmk.in: fix_cross_paths function. X-Git-Url: http://gitweb/?a=commitdiff_plain;h=041eea8cb3a02bc37b7da78cd7b70008cca5bd21;p=pkgutils-cross.git src/pkgmk.in: fix_cross_paths function. --- diff --git a/src/pkgmk.in b/src/pkgmk.in index c69329f..ddce5e7 100755 --- a/src/pkgmk.in +++ b/src/pkgmk.in @@ -316,6 +316,13 @@ compress_manpages() { done } +fix_cross_paths() { + # remove the last / from CLFS path if appeared + CLFS=${CLFS%*/} + + find $PKG -type f -name '*.la' -exec sed -e "s|$CLFS||g" -e "s|$CROSTOOLS/$CTARGET|/usr|g" -i {} \; +} + check_footprint() { local FILE="$PKGMK_WORK_DIR/.tmp" @@ -393,7 +400,8 @@ build_package() { strip_files fi - compress_manpages + compress_manpages + fix_cross_paths cd $PKG info "Build result:"