the parser.c longjmp vs gcc12 issue affects a few ports,
make the workaround global.
This commit is contained in:
parent
744309c52c
commit
08e29b5df3
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.121 2023/08/14 03:18:14 mrg Exp $
|
||||
# $NetBSD: Makefile,v 1.122 2023/10/14 06:53:56 mrg Exp $
|
||||
# @(#)Makefile 8.4 (Berkeley) 5/5/95
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
@ -94,9 +94,7 @@ COPTS.jobs.c = -Wno-format-nonliteral
|
|||
COPTS.var.c = -Wno-format-nonliteral
|
||||
|
||||
# XXXGCC12 - only on some targets
|
||||
.if ${MACHINE_CPU} == "sh3"
|
||||
COPTS.parser.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 12:? -O1 :}
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
.include <bsd.subdir.mk>
|
||||
|
|
Loading…
Reference in New Issue