Skip to content

Commit

Permalink
Only use the -s switch with the GNU version of strip
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Oct 22, 2016
1 parent 64bf7a5 commit 435bedb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ci/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@ gcc_prefix() {
}

dostrip() {
local prefix=$(gcc_prefix)
local stu=strip prefix=$(gcc_prefix)
if which ${prefix}strip > /dev/null; then
${prefix}strip -s $1
stu=${prefix}strip
fi
if strip --version 2>/dev/null | fgrep GNU >/dev/null ; then
$stu -s $1
else
strip -s $1
$stu $1
fi
}

Expand Down

0 comments on commit 435bedb

Please sign in to comment.