mirror of
https://github.com/reactos/RosBE.git
synced 2024-11-23 03:19:40 +00:00
[ROSBE-UNIX]
Disable symbols stripping on MacOSX: - find syntax is wrong (but could be fixed though) - stripping doesn't work ROSBE-35 #resolve #comment Fixed with r2093 and r2242 svn path=/trunk/RosBE/; revision=2242
This commit is contained in:
parent
e67f2857e8
commit
ee4c4b1395
@ -431,26 +431,30 @@ cd "$rs_archprefixdir"
|
||||
rm -rf $rs_target/doc $rs_target/share include info man share
|
||||
rm -f lib/* >& /dev/null
|
||||
|
||||
echo "Removing debugging symbols..."
|
||||
cd "$rs_prefixdir"
|
||||
for exe in `find -executable -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
|
||||
# See: https://jira.reactos.org/browse/ROSBE-35
|
||||
osname=`uname`
|
||||
if [ "$osname" != "Darwin" ]; then
|
||||
echo "Removing debugging symbols..."
|
||||
cd "$rs_prefixdir"
|
||||
for exe in `find -executable -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
|
||||
$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
|
||||
# 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
|
||||
$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
|
||||
$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
|
||||
$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
|
||||
fi
|
||||
##### END almost shared buildtoolchain/RosBE-Unix building part ###############
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user