The arch/x86/Makefile uses scripts/gcc-x86_$(BITS)-has-stack-protector.shto check if cc1 supports -fstack-protector. When -fPIE is passed to cc1,these scripts fail causing stack protection to be disabled even when itis available.

This fix is similar to commit c47efe5548abbf53c2f66e06dcb46183b11d6b22