X-Git-Url: http://gitweb/?a=blobdiff_plain;f=src%2Fpkgmk.in;h=ddce5e78cce83c38e1faf489729f60f10c30c45f;hb=d559ecf5a667b22c9e34fc3d908974d0233a4b2d;hp=c69329f4e765416779cc759178a2e1a23634582d;hpb=0a6aa15de291ebd423d8556bf2fe7363248246b1;p=pkgutils-cross.git 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:"