diff options
author | ngie <ngie@FreeBSD.org> | 2016-04-11 21:15:48 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-04-11 21:15:48 +0000 |
commit | 4e09d669726aba90567da8562c2930e3305cdfea (patch) | |
tree | 377610edbf13580d49a4826236e280d69cca84ce | |
parent | 95166937b1548af00b656bab602c47623f97634f (diff) | |
download | FreeBSD-src-4e09d669726aba90567da8562c2930e3305cdfea.zip FreeBSD-src-4e09d669726aba90567da8562c2930e3305cdfea.tar.gz |
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.
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
-rw-r--r-- | lib/msun/tests/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/msun/tests/Makefile b/lib/msun/tests/Makefile index 8b114fd..b18c07d 100644 --- a/lib/msun/tests/Makefile +++ b/lib/msun/tests/Makefile @@ -62,9 +62,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 |