wine: nopie_files

This commit is contained in:
Andrea Brancaleoni 2017-11-29 01:20:30 +01:00 committed by Andrea Brancaleoni
parent e7a4323e3b
commit cb72dfc4cd
2 changed files with 12 additions and 6 deletions

View file

@ -99,7 +99,14 @@ hook() {
return 1
fi
echo " Stripped executable: ${f#$PKGDESTDIR}"
if [ -z "$nopie" ]; then
unset nopie_found
for x in ${nopie_files}; do
if [ "$x" = "${f#$PKGDESTDIR}" ]; then
nopie_found=1
break
fi
done
if [ -z "$nopie" ] && [ -z "$nopie_found" ]; then
msg_red "$pkgver: non-PIE executable found in PIE build: ${f#$PKGDESTDIR}\n"
return 1
fi