NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/59713: bin/sh/Makefile clobbers COPTS.<fn>
>Number: 59713
>Category: bin
>Synopsis: bin/sh/Makefile clobbers COPTS.<fn>
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Oct 19 16:15:00 +0000 2025
>Originator: Sotiris Lamprinidis
>Release: netbsd-.11
>Organization:
>Environment:
NetBSD 11.0_BETA
>Description:
bin/sh clobbers file-specific COPTS.<fn>; see patch
I was trying to build netbsd-11 from netbsd-11/GCC 12.5 and there are a few Werrors I addressed using COPTS.<fn> flags, so that's how I found that out. Not sure if that's a supported use case. Thanks!
>How-To-Repeat:
>Fix:
Index: bin/sh/Makefile
===================================================================
RCS file: /export/cvsroot/netbsdsrc/bin/sh/Makefile,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 Makefile
--- bin/sh/Makefile 18 Oct 2025 13:45:00 -0000 1.1.1.1
+++ bin/sh/Makefile 19 Oct 2025 16:00:05 -0000
@@ -91,9 +91,9 @@
SUBDIR.roff+=USD.doc
-COPTS.printf.c = -Wno-format-nonliteral
-COPTS.jobs.c = -Wno-format-nonliteral
-COPTS.var.c = -Wno-format-nonliteral
+COPTS.printf.c+= -Wno-format-nonliteral
+COPTS.jobs.c+= -Wno-format-nonliteral
+COPTS.var.c+= -Wno-format-nonliteral
# XXXGCC12 - only on some targets
COPTS.parser.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 12:? -Wno-error=clobbered :}
Home |
Main Index |
Thread Index |
Old Index