diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index a964cf6e596c..8fffbe434fc3 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -239,7 +239,10 @@ CFLAGS.clang+= -Qunused-arguments # but not yet. CXXFLAGS.clang+= -Wno-c++11-extensions -.if ${MK_SSP} != "no" +# XXX: powerpc64 and powerpc64le added temporarily due to regression on +# llvm12 and later when -On and -fstack-protector-strong are used +.if ${MK_SSP} != "no" && \ + ${MACHINE_ARCH} != "powerpc64" && ${MACHINE_ARCH} != "powerpc64le" # Don't use -Wstack-protector as it breaks world with -Werror. SSP_CFLAGS?= -fstack-protector-strong CFLAGS+= ${SSP_CFLAGS}