aboutsummaryrefslogtreecommitdiff
path: root/libgo/Makefile.in
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2020-05-15 10:50:57 -0700
committerIan Lance Taylor <iant@golang.org>2020-05-15 15:33:20 -0700
commite478cacb62f116d2c8efdabc4b51e6d2d7041aae (patch)
tree842f0f76d7668a745c1842e07f39b3cd56356a37 /libgo/Makefile.in
parent29f0e90d9904d8e0965443d4da4c95ddde5edb1e (diff)
downloadgcc-e478cacb62f116d2c8efdabc4b51e6d2d7041aae.zip
gcc-e478cacb62f116d2c8efdabc4b51e6d2d7041aae.tar.gz
gcc-e478cacb62f116d2c8efdabc4b51e6d2d7041aae.tar.bz2
libgo: only build syscall test with -static if it works
Test whether -static works, and use it if possible. This time for sure. For PR go/95061 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/234024
Diffstat (limited to 'libgo/Makefile.in')
-rw-r--r--libgo/Makefile.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/Makefile.in b/libgo/Makefile.in
index 982253d..b2712eb 100644
--- a/libgo/Makefile.in
+++ b/libgo/Makefile.in
@@ -1105,9 +1105,9 @@ runtime_internal_sys_lo_check_GOCFLAGS = -fgo-compiling-runtime
# Also use -fno-inline to get better results from the memory profiler.
runtime_pprof_check_GOCFLAGS = -static-libgo -fno-inline
-# Use -static for the syscall tests, because otherwise when
+# Use -static for the syscall tests if possible, because otherwise when
# running as root the re-execs ignore LD_LIBRARY_PATH.
-@LIBGO_IS_LINUX_TRUE@syscall_check_GOCFLAGS = -static
+@HAVE_STATIC_LINK_TRUE@syscall_check_GOCFLAGS = -static
extra_go_files_runtime_internal_sys = version.go
extra_go_files_internal_cpu = cpugen.go
extra_go_files_golang_org_x_sys_cpu = gcpugen.go