Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gcc/lib/libstdc++-v3 Building random.cc with c...
details: https://anonhg.NetBSD.org/src/rev/696a68313b9c
branches: trunk
changeset: 332639:696a68313b9c
user: joerg <joerg%NetBSD.org@localhost>
date: Wed Oct 01 22:26:05 2014 +0000
description:
Building random.cc with clang requires -mrdrnd on x86.
diffstat:
external/gpl3/gcc/lib/libstdc++-v3/Makefile | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 342359cbb110 -r 696a68313b9c external/gpl3/gcc/lib/libstdc++-v3/Makefile
--- a/external/gpl3/gcc/lib/libstdc++-v3/Makefile Wed Oct 01 22:18:19 2014 +0000
+++ b/external/gpl3/gcc/lib/libstdc++-v3/Makefile Wed Oct 01 22:26:05 2014 +0000
@@ -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 @@
#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 \
Home |
Main Index |
Thread Index |
Old Index