From 20773b83f9e229edf53d4d5a18b081d39102b516 Mon Sep 17 00:00:00 2001 From: ngie Date: Fri, 22 Apr 2016 21:32:01 +0000 Subject: MFC r297836: Fix appending -O0 to CFLAGS The previous method would completely nerf CFLAGS once bsd.progs.mk had recursed into the per-PROG logic and make the CFLAGS for tap testcases to -O0, instead of appending to CFLAGS for all of the tap testcases. --- lib/msun/tests/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/msun') diff --git a/lib/msun/tests/Makefile b/lib/msun/tests/Makefile index 2561ef7..a82f29f 100644 --- a/lib/msun/tests/Makefile +++ b/lib/msun/tests/Makefile @@ -58,9 +58,9 @@ TAP_TESTS_C+= next_test TAP_TESTS_C+= rem_test TAP_TESTS_C+= trig_test -.for t in ${TAP_TESTS_C} -CFLAGS.$t+= -O0 -.endfor +.if !empty(PROG) && !empty(TAP_TESTS_C:M${PROG}) +CFLAGS+= -O0 +.endif CSTD= c99 -- cgit v1.1