Index: C:/ROS/rosbe/RosBE-Builder.sh =================================================================== --- RosBE/RosBE-Unix/Base-i386/RosBE-Builder.sh (revision 2047) +++ RosBE/RosBE-Unix/Base-i386/RosBE-Builder.sh (working copy) @@ -410,20 +410,20 @@ echo "Removing debugging symbols..." cd "$rs_prefixdir" -for exe in `find -executable -type f -print`; do +for exe in `find . -perm +a=x -type f -print`; do objcopy --only-keep-debug $exe $exe.dbg 2>/dev/null objcopy --strip-debug $exe 2>/dev/null objcopy --add-gnu-debuglink=$exe.dbg $exe 2>/dev/null done # Executables are created for the host system while most libraries are linked to target components -for exe in `find -name "*.a" -type f -print`; do +for exe in `find . -name "*.a" -type f -print`; do $rs_archprefixdir/bin/i686-w64-mingw32-objcopy --only-keep-debug $exe $exe.dbg 2>/dev/null $rs_archprefixdir/bin/i686-w64-mingw32-objcopy --strip-debug $exe 2>/dev/null $rs_archprefixdir/bin/i686-w64-mingw32-objcopy --add-gnu-debuglink=$exe.dbg $exe 2>/dev/null done -for exe in `find -name "*.o" -type f -print`; do +for exe in `find . -name "*.o" -type f -print`; do $rs_archprefixdir/bin/i686-w64-mingw32-objcopy --only-keep-debug $exe $exe.dbg 2>/dev/null $rs_archprefixdir/bin/i686-w64-mingw32-objcopy --strip-debug $exe 2>/dev/null $rs_archprefixdir/bin/i686-w64-mingw32-objcopy --add-gnu-debuglink=$exe.dbg $exe 2>/dev/null