Module Name: src
Committed By: martin
Date: Mon Oct 13 09:57:35 UTC 2014
Modified Files:
src/tests/lib/libc/sync: Makefile
Log Message:
Do not try the C++ 2011 test with gcc < 4.8
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libc/sync/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/lib/libc/sync/Makefile
diff -u src/tests/lib/libc/sync/Makefile:1.3 src/tests/lib/libc/sync/Makefile:1.4
--- src/tests/lib/libc/sync/Makefile:1.3 Sun Oct 12 08:02:35 2014
+++ src/tests/lib/libc/sync/Makefile Mon Oct 13 09:57:35 2014
@@ -1,12 +1,20 @@
-# $NetBSD: Makefile,v 1.3 2014/10/12 08:02:35 martin Exp $
+# $NetBSD: Makefile,v 1.4 2014/10/13 09:57:35 martin Exp $
WARNS=0
NOMAN=1
-CXXFLAGS+= -std=c++11
-
-PROG=all_sync_ops_linkable # cpp_atomic_ops_linkable
proginstall:
@echo This directory features link time only tests.
.include <bsd.prog.mk>
+
+PROG= all_sync_ops_linkable
+
+.if "${ACTIVE_CC}" == "clang" || \
+ ("${ACTIVE_CC}" == "gcc" && "${HAVE_GCC}" == "48")
+
+CXXFLAGS+= -std=c++11
+PROG+= cpp_atomic_ops_linkable
+
+.endif
+