[compiler-rt] r313347 - tsan: respect LDFLAGS when build Go test

Dmitry Vyukov via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 14 23:51:37 PDT 2017


Author: dvyukov
Date: Thu Sep 14 23:51:37 2017
New Revision: 313347

URL: http://llvm.org/viewvc/llvm-project?rev=313347&view=rev
Log:
tsan: respect LDFLAGS when build Go test

Reported at:
https://bugs.llvm.org/show_bug.cgi?id=27597

Some platforms need additional LDFLAGS when building the test
(e.g. -no-pie). Respect LDFLAGS.


Modified:
    compiler-rt/trunk/lib/tsan/go/buildgo.sh

Modified: compiler-rt/trunk/lib/tsan/go/buildgo.sh
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/go/buildgo.sh?rev=313347&r1=313346&r2=313347&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/go/buildgo.sh (original)
+++ compiler-rt/trunk/lib/tsan/go/buildgo.sh Thu Sep 14 23:51:37 2017
@@ -127,7 +127,7 @@ if [ "$SILENT" != "1" ]; then
 fi
 $CC $DIR/gotsan.cc -c -o $DIR/race_$SUFFIX.syso $FLAGS $CFLAGS
 
-$CC $OSCFLAGS test.c $DIR/race_$SUFFIX.syso -m64 -g -o $DIR/test $OSLDFLAGS
+$CC $OSCFLAGS test.c $DIR/race_$SUFFIX.syso -m64 -g -o $DIR/test $OSLDFLAGS $LDFLAGS
 
 export GORACE="exitcode=0 atexit_sleep_ms=0"
 if [ "$SILENT" != "1" ]; then




More information about the llvm-commits mailing list