CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Fixed installation of .la files which were affected due to crosscompilation paths.
[pkgutils-cross.git] / src / pkgmk.in
index 7378def28e515e5531c5ac5c69986f8ad485d257..9c20c67026faed4fa1d73b1a8beb593182a5468a 100755 (executable)
@@ -305,6 +305,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 "s|$CLFS||g" -i {} \;
+}
+
 check_footprint() {
        local FILE="$PKGMK_WORK_DIR/.tmp"
        
@@ -377,6 +384,7 @@ build_package() {
                fi
                
                compress_manpages
+               fix_cross_paths
                
                cd $PKG
                info "Build result:"