mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-23 00:51:00 +08:00
libgo: only build syscall test with -static on GNU/Linux
For PR go/95061 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/234019
This commit is contained in:
parent
75d0b3d728
commit
3a36428b5f
@ -1,4 +1,4 @@
|
||||
93b3d88515db85e203d54f382200b84b56b0ae4c
|
||||
cae8d4c388d4cc701c7f8fc221c9f6431760d93a
|
||||
|
||||
The first line of this file holds the git revision number of the last
|
||||
merge done from the gofrontend repository.
|
||||
|
@ -967,9 +967,11 @@ endif
|
||||
# Also use -fno-inline to get better results from the memory profiler.
|
||||
runtime_pprof_check_GOCFLAGS = -static-libgo -fno-inline
|
||||
|
||||
if LIBGO_IS_LINUX
|
||||
# Use -static for the syscall tests, because otherwise when
|
||||
# running as root the re-execs ignore LD_LIBRARY_PATH.
|
||||
syscall_check_GOCFLAGS = -static
|
||||
endif
|
||||
|
||||
extra_go_files_runtime_internal_sys = version.go
|
||||
runtime/internal/sys.lo.dep: $(extra_go_files_runtime_internal_sys)
|
||||
|
@ -1107,7 +1107,7 @@ runtime_pprof_check_GOCFLAGS = -static-libgo -fno-inline
|
||||
|
||||
# Use -static for the syscall tests, because otherwise when
|
||||
# running as root the re-execs ignore LD_LIBRARY_PATH.
|
||||
syscall_check_GOCFLAGS = -static
|
||||
@LIBGO_IS_LINUX_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
|
||||
|
Loading…
x
Reference in New Issue
Block a user