Author: ngie
Date: Fri Apr 22 21:32:01 2016
New Revision: 298491
URL: https://svnweb.freebsd.org/changeset/base/298491

Log:
  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.

Modified:
  stable/10/lib/msun/tests/Makefile
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/lib/msun/tests/Makefile
==============================================================================
--- stable/10/lib/msun/tests/Makefile   Fri Apr 22 21:30:42 2016        
(r298490)
+++ stable/10/lib/msun/tests/Makefile   Fri Apr 22 21:32:01 2016        
(r298491)
@@ -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
 
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to