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/75df2e998044
branches:  trunk
changeset: 976109:75df2e998044
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 c52f30e77769 -r 75df2e998044 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