Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=3b42dc0fcd81e361180e872ff17543eb9ac8d7fc
commit 3b42dc0fcd81e361180e872ff17543eb9ac8d7fc Author: crazy <[email protected]> Date: Sat Oct 8 06:55:50 2016 +0200 warn about broken strict-aliasing * this may cause real issues and generate buggy code * grep for 'pointer will break strict-aliasing rules' in the build log * and warn about. These packages need CFLAGS+=" -fno-strict-aliasing" diff --git a/scripts/makepkg b/scripts/makepkg index 41b167b..c529358 100755 --- a/scripts/makepkg +++ b/scripts/makepkg @@ -1216,6 +1216,14 @@ if [ "$CHROOT" = "1" -a "$INCHROOT" != "1" ]; then else warning "This package isn't ${CARCH}-optimized!" fi + + ## this may cause real problems so wan about + if grep -q "\pointer will break strict-aliasing rules" "${BUILDLOG}" 2>/dev/null; then + msg "Your package has coding issues" + warning "Broken strict-aliasing rules detected" + warning "CFLAGS need -fno-strict-aliasing" + warning "Please recompile with right CFLAGS" + fi # copy build log to LOGDIR if set if [ -d "$LOGDIR" ]; then msg "Creating permanent copy of build log" _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
