From 242418a3cc155e06411da3b5e7aff50622d12ad4 Mon Sep 17 00:00:00 2001 From: ian Date: Tue, 15 Sep 2015 21:15:37 +0000 Subject: 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 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227811 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgo/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libgo/Makefile.am') diff --git a/libgo/Makefile.am b/libgo/Makefile.am index 924dba0a705b..ca2280dcecf7 100644 --- a/libgo/Makefile.am +++ b/libgo/Makefile.am @@ -2074,7 +2074,7 @@ libnetgo_a_LIBADD = netgo.o LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS)) GOCFLAGS = $(CFLAGS) -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) \ -- cgit v1.2.3