build/internals.sh: Handle pie executables

Fixes: #887

On some systems the file command identifies a pie executable as a shared
object. Update do_finish() to handle this case so that they are stripped
as well.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
This commit is contained in:
Chris Packham 2019-09-14 22:17:28 +12:00
parent afaf7b9a25
commit 8ad4a8b83f

View File

@ -83,7 +83,7 @@ do_finish() {
case "${_type}" in
*script*executable*)
;;
*executable*)
*executable*|*shared*object*)
CT_DoExecLog ALL ${CT_HOST}-strip ${strip_args} "${_t}"
;;
esac