diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-09-15 21:15:37 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-09-15 21:15:37 +0000 |
commit | a2bf11d16a01ced5d2bd0500a6896627b7bed076 (patch) | |
tree | cc1561d9c684e30e43f7804a87ab7caab0047110 /libgo/Makefile.in | |
parent | c8338173d725ca0690f25f54e04171ed6cad6be9 (diff) | |
download | gcc-a2bf11d16a01ced5d2bd0500a6896627b7bed076.zip gcc-a2bf11d16a01ced5d2bd0500a6896627b7bed076.tar.gz gcc-a2bf11d16a01ced5d2bd0500a6896627b7bed076.tar.bz2 |
libgo: If compiler can split-stack and linker can not, use -fno-split-stack.
If the compiler supports split-stack but we are using a gold linker that
does not, as happens on PPC with current GCC but old gold, then we need
to compile the Go code with -fno-split-stack to avoid a linker error
avoid the inability to call from split-stack code to non-split-stack
code.
Reviewed-on: https://go-review.googlesource.com/14598
From-SVN: r227811
Diffstat (limited to 'libgo/Makefile.in')
-rw-r--r-- | libgo/Makefile.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libgo/Makefile.in b/libgo/Makefile.in index 5072ceb..5d7b8c9 100644 --- a/libgo/Makefile.in +++ b/libgo/Makefile.in @@ -366,6 +366,7 @@ GOCFLAGS = $(CFLAGS) GOOS = @GOOS@ GO_LIBCALL_OS_ARCH_FILE = @GO_LIBCALL_OS_ARCH_FILE@ GO_LIBCALL_OS_FILE = @GO_LIBCALL_OS_FILE@ +GO_SPLIT_STACK = @GO_SPLIT_STACK@ GO_SYSCALL_OS_ARCH_FILE = @GO_SYSCALL_OS_ARCH_FILE@ GO_SYSCALL_OS_FILE = @GO_SYSCALL_OS_FILE@ GREP = @GREP@ @@ -2153,7 +2154,7 @@ libgolibbegin_a_CFLAGS = $(AM_CFLAGS) -fPIC libnetgo_a_SOURCES = $(go_netgo_files) libnetgo_a_LIBADD = netgo.o LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS)) -AM_GOCFLAGS = $(STRINGOPS_FLAG) +AM_GOCFLAGS = $(STRINGOPS_FLAG) $(GO_SPLIT_STACK) GOCOMPILE = $(GOC) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_GOCFLAGS) $(GOCFLAGS) LTGOCOMPILE = $(LIBTOOL) --tag GO --mode=compile $(GOC) $(INCLUDES) \ $(AM_GOCFLAGS) $(GOCFLAGS) |