Skip to content

Commit

Permalink
Merge pull request #1416 from smuzaffar/IB/CMSSW_7_5_X/stable
Browse files Browse the repository at this point in the history
run dwz if we have multiple binary files
  • Loading branch information
smuzaffar committed Feb 24, 2015
2 parents 40b7a66 + 7e94bc2 commit 9d807d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scram-project-build.file
Expand Up @@ -299,7 +299,9 @@ for DIR in $ELF_DIRS $DROP_SYMBOLS_DIRS; do
# ELF binaries
ELF_BINS=$(file * | grep ELF | cut -d':' -f1)
if [ ! -z "$ELF_BINS" ]; then
dwz -m .debug/common-symbols.debug -M common-symbols.debug $ELF_BINS
if [ $(echo $ELF_BINS | wc -w) -gt 1 ] ; then
dwz -m .debug/common-symbols.debug -M common-symbols.debug $ELF_BINS
fi
echo "$ELF_BINS" | xargs -t -n1 -P%{compiling_processes} -I% sh -c 'objcopy --compress-debug-sections --only-keep-debug % .debug/%.debug; objcopy --strip-debug --add-gnu-debuglink=.debug/%.debug %'
fi
popd
Expand Down

0 comments on commit 9d807d4

Please sign in to comment.