Module Name:    src
Committed By:   joerg
Date:           Wed Oct  1 22:26:05 UTC 2014

Modified Files:
        src/external/gpl3/gcc/lib/libstdc++-v3: Makefile

Log Message:
Building random.cc with clang requires -mrdrnd on x86.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/lib/libstdc++-v3/Makefile
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.16 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.17
--- src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.16	Sat Jun 14 20:49:36 2014
+++ src/external/gpl3/gcc/lib/libstdc++-v3/Makefile	Wed Oct  1 22:26:05 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.16 2014/06/14 20:49:36 mrg Exp $
+#	$NetBSD: Makefile,v 1.17 2014/10/01 22:26:05 joerg Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -14,6 +14,9 @@ LIBDPLIBS+=	m ${.CURDIR}/../../../../../
 
 #COPTS+=		-pthread
 #LDFLAGS+=	-pthread
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
+COPTS.random.cc+=	${${ACTIVE_CC} == "clang":? -mrdrnd :}
+.endif
 
 UNSUPPORTED_COMPILER.clang=	# defined
 CWARNFLAGS.clang+=	-Wno-logical-op-parentheses \

Reply via email to