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/libtsan Always link TSan runtime with ...



details:   https://anonhg.NetBSD.org/src/rev/76a797ea5814
branches:  trunk
changeset: 954885:76a797ea5814
user:      kamil <kamil%NetBSD.org@localhost>
date:      Sat Sep 12 23:04:44 2020 +0000

description:
Always link TSan runtime with librt and libm

With these changes, TSan/amd64 works.

diffstat:

 external/gpl3/gcc/lib/libtsan/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 1e468f61fe06 -r 76a797ea5814 external/gpl3/gcc/lib/libtsan/Makefile
--- a/external/gpl3/gcc/lib/libtsan/Makefile    Sat Sep 12 22:52:24 2020 +0000
+++ b/external/gpl3/gcc/lib/libtsan/Makefile    Sat Sep 12 23:04:44 2020 +0000
@@ -1,4 +1,7 @@
-# $NetBSD: Makefile,v 1.11 2020/09/12 22:24:22 kamil Exp $
+# $NetBSD: Makefile,v 1.12 2020/09/12 23:04:44 kamil Exp $
+
+UNSUPPORTED_COMPILER.clang=     # defined
+NOSANITIZER=    # defined
 
 .include <bsd.own.mk>
 
@@ -53,6 +56,8 @@
 
 LIB=   tsan
 SRCS+= ${TSAN_SRCS}
+LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
+LIBDPLIBS+= m  ${NETBSDSRCDIR}/lib/libm
 CPPFLAGS+=-DCAN_SANITIZE_UB=0
 COPTS.tsan_interceptors.cc += -Wno-unused-function
 



Home | Main Index | Thread Index | Old Index