summaryrefslogtreecommitdiffstats
path: root/lib/msun
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2016-04-22 21:32:01 +0000
committerngie <ngie@FreeBSD.org>2016-04-22 21:32:01 +0000
commit20773b83f9e229edf53d4d5a18b081d39102b516 (patch)
treeefeecb00d95d8c0b1bdcbfe961d8fd1ed6b17bab /lib/msun
parentac0b3513998a1c8420a86dde5558b1e0c953c5c7 (diff)
downloadFreeBSD-src-20773b83f9e229edf53d4d5a18b081d39102b516.zip
FreeBSD-src-20773b83f9e229edf53d4d5a18b081d39102b516.tar.gz
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.
Diffstat (limited to 'lib/msun')
-rw-r--r--lib/msun/tests/Makefile6
1 files changed, 3 insertions, 3 deletions
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
OpenPOWER on IntegriCloud