-# $OpenBSD: Makefile.amd64,v 1.127 2022/04/07 07:30:54 jsg Exp $
+# $OpenBSD: Makefile.amd64,v 1.128 2022/12/30 06:44:35 jca Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
NO_INTEGR_AS= -no-integrated-as
CWARNFLAGS+= -Wno-address-of-packed-member -Wno-constant-conversion \
-Wno-unused-but-set-variable -Wno-gnu-folding-constant
+# XXX Workaround for zlib + clang 15
+# https://github.com/madler/zlib/issues/633
+CWARNFLAGS+= -Wno-deprecated-non-prototype -Wno-unknown-warning-option
.endif
DEBUG?= -g
-# $OpenBSD: Makefile.inc,v 1.18 2017/07/25 13:32:14 robert Exp $
+# $OpenBSD: Makefile.inc,v 1.19 2022/12/30 06:44:35 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
-# $OpenBSD: Makefile.arm64,v 1.42 2022/01/14 06:53:16 jsg Exp $
+# $OpenBSD: Makefile.arm64,v 1.43 2022/12/30 06:44:35 jca Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
-Wno-constant-conversion -Wno-address-of-packed-member \
-Wno-unused-but-set-variable -Wno-gnu-folding-constant \
-Wframe-larger-than=2047
+# XXX Workaround for zlib + clang 15
+# https://github.com/madler/zlib/issues/633
+CWARNFLAGS+= -Wno-deprecated-non-prototype -Wno-unknown-warning-option
CMACHFLAGS= -march=armv8-a+nofp+nosimd \
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer \
-# $OpenBSD: Makefile,v 1.17 2022/12/07 23:04:26 patrick Exp $
+# $OpenBSD: Makefile,v 1.18 2022/12/30 06:44:35 jca Exp $
NOMAN= #
COPTS+= -ffreestanding -fno-stack-protector
COPTS+= -fshort-wchar -fPIC -fno-builtin
COPTS+= -Wall -Werror
+# XXX Workaround for zlib + clang 15
+# https://github.com/madler/zlib/issues/633
+COPTS+= -Wno-deprecated-non-prototype -Wno-unknown-warning-option
PROG.elf= ${PROG:S/.EFI/.elf/}
CLEANFILES+= ${PROG.elf} ${PROG.elf}.tmp
-# $OpenBSD: Makefile.armv7,v 1.52 2021/12/17 14:59:22 patrick Exp $
+# $OpenBSD: Makefile.armv7,v 1.53 2022/12/30 06:44:35 jca Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
-Wno-constant-conversion -Wno-address-of-packed-member \
-Wno-unused-but-set-variable -Wno-gnu-folding-constant \
-Wframe-larger-than=2047
+# XXX Workaround for zlib + clang 15
+# https://github.com/madler/zlib/issues/633
+CWARNFLAGS+= -Wno-deprecated-non-prototype -Wno-unknown-warning-option
CMACHFLAGS= -msoft-float -march=armv7a
CMACHFLAGS+= -ffreestanding ${NOPIE_FLAGS}
-# $OpenBSD: Makefile,v 1.17 2021/11/14 21:51:48 guenther Exp $
+# $OpenBSD: Makefile,v 1.18 2022/12/30 06:44:35 jca Exp $
NOMAN= #
COPTS+= -fshort-wchar -fPIC -fno-builtin
COPTS+= -Wall -Werror
COPTS+= -mfloat-abi=soft
+# XXX Workaround for zlib + clang 15
+# https://github.com/madler/zlib/issues/633
+COPTS+= -Wno-deprecated-non-prototype -Wno-unknown-warning-option
PROG.elf= ${PROG:S/.EFI/.elf/}
CLEANFILES+= ${PROG.elf} ${PROG.elf}.tmp
-# $OpenBSD: Makefile.i386,v 1.142 2021/12/17 14:59:22 patrick Exp $
+# $OpenBSD: Makefile.i386,v 1.143 2022/12/30 06:44:36 jca Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
NO_INTEGR_AS= -no-integrated-as
CWARNFLAGS+= -Wno-address-of-packed-member -Wno-constant-conversion \
-Wno-unused-but-set-variable -Wno-gnu-folding-constant
+# XXX Workaround for zlib + clang 15
+# https://github.com/madler/zlib/issues/633
+CWARNFLAGS+= -Wno-deprecated-non-prototype -Wno-unknown-warning-option
.endif
DEBUG?= -g
-# $OpenBSD: Makefile.inc,v 1.51 2017/07/25 13:32:14 robert Exp $
+# $OpenBSD: Makefile.inc,v 1.52 2022/12/30 06:44:35 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=
-# $OpenBSD: Makefile.loongson,v 1.82 2021/12/17 14:59:22 patrick Exp $
+# $OpenBSD: Makefile.loongson,v 1.83 2022/12/30 06:44:36 jca Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
CMACHFLAGS+= -fomit-frame-pointer
CWARNFLAGS+= -Wno-address-of-packed-member -Wno-constant-conversion \
-Wno-unused-but-set-variable -Wno-gnu-folding-constant
+# XXX Workaround for zlib + clang 15
+# https://github.com/madler/zlib/issues/633
+CWARNFLAGS+= -Wno-deprecated-non-prototype -Wno-unknown-warning-option
.endif
DEBUG?= -g
-# $OpenBSD: Makefile.macppc,v 1.104 2021/12/17 14:59:22 patrick Exp $
+# $OpenBSD: Makefile.macppc,v 1.105 2022/12/30 06:44:36 jca Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
NO_INTEGR_AS= -no-integrated-as
CWARNFLAGS+= -Wno-address-of-packed-member -Wno-constant-conversion \
-Wno-unused-but-set-variable -Wno-gnu-folding-constant
+# XXX Workaround for zlib + clang 15
+# https://github.com/madler/zlib/issues/633
+CWARNFLAGS+= -Wno-deprecated-non-prototype -Wno-unknown-warning-option
.endif
DEBUG?= -g
-# $OpenBSD: Makefile.octeon,v 1.61 2022/07/18 12:48:35 visa Exp $
+# $OpenBSD: Makefile.octeon,v 1.62 2022/12/30 06:44:36 jca Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
CMACHFLAGS+= -fomit-frame-pointer
CWARNFLAGS+= -Wno-address-of-packed-member -Wno-constant-conversion \
-Wno-unused-but-set-variable -Wno-gnu-folding-constant
+# XXX Workaround for zlib + clang 15
+# https://github.com/madler/zlib/issues/633
+CWARNFLAGS+= -Wno-deprecated-non-prototype -Wno-unknown-warning-option
.endif
DEBUG?= -g
-# $OpenBSD: Makefile.powerpc64,v 1.13 2022/01/14 06:53:17 jsg Exp $
+# $OpenBSD: Makefile.powerpc64,v 1.14 2022/12/30 06:44:36 jca Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
-Wno-constant-conversion -Wno-address-of-packed-member \
-Wno-unused-but-set-variable -Wno-gnu-folding-constant \
-Wframe-larger-than=2047
+# XXX Workaround for zlib + clang 15
+# https://github.com/madler/zlib/issues/633
+CWARNFLAGS+= -Wno-deprecated-non-prototype -Wno-unknown-warning-option
CMACHFLAGS= -mabi=elfv2 -msoft-float -mno-altivec -mno-vsx
CMACHFLAGS+= -ffreestanding
-# $OpenBSD: Makefile.riscv64,v 1.15 2022/01/12 00:58:48 kevlo Exp $
+# $OpenBSD: Makefile.riscv64,v 1.16 2022/12/30 06:44:36 jca Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
-Wno-constant-conversion -Wno-address-of-packed-member \
-Wno-unused-but-set-variable -Wno-gnu-folding-constant \
-Wframe-larger-than=2047
+# XXX Workaround for zlib + clang 15
+# https://github.com/madler/zlib/issues/633
+CWARNFLAGS+= -Wno-deprecated-non-prototype -Wno-unknown-warning-option
CMACHFLAGS= -march=rv64gc -mcmodel=medany -mno-relax \
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
-# $OpenBSD: Makefile,v 1.2 2021/11/14 21:51:48 guenther Exp $
+# $OpenBSD: Makefile,v 1.3 2022/12/30 06:44:35 jca Exp $
NOMAN= #
COPTS+= -ffreestanding -fno-stack-protector
COPTS+= -fshort-wchar -fPIC -fno-builtin
COPTS+= -Wall -Werror
+# XXX Workaround for zlib + clang 15
+# https://github.com/madler/zlib/issues/633
+COPTS+= -Wno-deprecated-non-prototype -Wno-unknown-warning-option
PROG.elf= ${PROG:S/.EFI/.elf/}
CLEANFILES+= ${PROG.elf} ${PROG.elf}.tmp
-# $OpenBSD: Makefile.sparc64,v 1.104 2021/12/17 14:59:22 patrick Exp $
+# $OpenBSD: Makefile.sparc64,v 1.105 2022/12/30 06:44:36 jca Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
CWARNFLAGS+= -Wno-unused-command-line-argument
CWARNFLAGS+= -Wno-address-of-packed-member -Wno-constant-conversion \
-Wno-unused-but-set-variable -Wno-gnu-folding-constant
+# XXX Workaround for zlib + clang 15
+# https://github.com/madler/zlib/issues/633
+CWARNFLAGS+= -Wno-deprecated-non-prototype -Wno-unknown-warning-option
.endif
DEBUG?= -g