diff --git a/common/hooks/post-install/06-strip-and-debug-pkgs.sh b/common/hooks/post-install/06-strip-and-debug-pkgs.sh index 7e8ddfc80b5..4f054425253 100644 --- a/common/hooks/post-install/06-strip-and-debug-pkgs.sh +++ b/common/hooks/post-install/06-strip-and-debug-pkgs.sh @@ -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 ;;