-# $OpenBSD: Makefile.inc,v 1.19 2022/12/30 06:44:35 jca Exp $
+# $OpenBSD: Makefile.inc,v 1.20 2022/12/30 06:50:27 jca Exp $
CFLAGS=${DEBUG} ${COPTS} -Oz -Wall -Werror
-# XXX Workaround for zlib + clang 15
-# https://github.com/madler/zlib/issues/633
-CFLAGS+= -Wno-deprecated-non-prototype -Wno-unknown-warning-option
CFLAGS+= -ffreestanding -fno-stack-protector -DMDRANDOM
CPPFLAGS+=-I${S} -I${SADIR}/libsa -I. -I${.CURDIR}
SACFLAGS=-D_STANDALONE
.include <bsd.own.mk>
.if ${COMPILER_VERSION:Mclang}
+# XXX Workaround for zlib + clang 15
+# https://github.com/madler/zlib/issues/633
+CFLAGS+= -Wno-deprecated-non-prototype -Wno-unknown-warning-option
NO_INTEGR_AS= -no-integrated-as
.endif
-# $OpenBSD: Makefile.inc,v 1.52 2022/12/30 06:44:35 jca Exp $
+# $OpenBSD: Makefile.inc,v 1.53 2022/12/30 06:50:27 jca Exp $
CFLAGS=${DEBUG} ${COPTS} -Oz -Wall -Werror
CFLAGS+= -ffreestanding -fno-stack-protector -DMDRANDOM
-# XXX Workaround for zlib + clang 15
-# https://github.com/madler/zlib/issues/633
-CFLAGS+= -Wno-deprecated-non-prototype -Wno-unknown-warning-option
CPPFLAGS+=-I${S} -I${SADIR}/libsa -I. -I${.CURDIR}
SACFLAGS=-D_STANDALONE
DEBUGFLAGS=
.include <bsd.own.mk>
.if ${COMPILER_VERSION:Mclang}
+# XXX Workaround for zlib + clang 15
+# https://github.com/madler/zlib/issues/633
+CFLAGS+= -Wno-deprecated-non-prototype -Wno-unknown-warning-option
NO_INTEGR_AS= -no-integrated-as
.endif