hooks/post-install/06-strip-and-debug-pkgs.sh: bail out on non-PIE binaries in PIE builds.

Not tested extensively, in doubt needs twerking.
This commit is contained in:
Christian Neukirchen 2016-05-17 14:58:33 +02:00
parent 1b92f4c9e1
commit fb830a2a37

View file

@ -99,6 +99,10 @@ hook() {
return 1
fi
echo " Stripped executable: ${f#$PKGDESTDIR}"
if [ -z "$nopie" ]; then
msg_red "$pkgver: non-PIE executable found in PIE build: ${f#$PKGDESTDIR}\n"
return 1
fi
attach_debug "$f"
fi
;;