Patchwork libgo patch committed: Always use $(AM_LDFLAGS)

mail settings
Submitter Ian Taylor
Date April 6, 2011, 6:01 a.m.
Message ID <>
Download mbox | patch
Permalink /patch/89986/
State New
Headers show


Ian Taylor - April 6, 2011, 6:01 a.m.
This patch to the libgo Makefile ensures that we always use
$(AM_LDFLAGS) when linking  This is required so that we pass
-fsplit-stack to the link command, which tells the gcc driver to wrap
pthread_create.  Without this, most Go tests failed when not using
gold.  Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu.
Committed to mainline.



diff -r 7faca938d612 libgo/
--- a/libgo/	Tue Apr 05 14:09:53 2011 -0700
+++ b/libgo/	Tue Apr 05 22:52:32 2011 -0700
@@ -1511,7 +1511,7 @@ 
 libgo_la_SOURCES = $(runtime_files)
 libgo_la_LIBADD = \
 	$(libgo_go_objs) $(LIBFFI) $(PTHREAD_LIBS) $(MATH_LIBS) $(NET_LIBS)