From 041eea8cb3a02bc37b7da78cd7b70008cca5bd21 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 5 Apr 2011 11:00:51 +0000 Subject: [PATCH] src/pkgmk.in: fix_cross_paths function. --- src/pkgmk.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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:" -- 2.26.2