From 5c8e495222feb72e432b8e701961a6becf5f78b2 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 6 Apr 2011 06:01:53 +0000 Subject: [PATCH] libgo: Always use AM_LDFLAGS when linking libgo.la. This ensures that we pass -fsplit-stack as required. From-SVN: r172018 --- libgo/Makefile.am | 2 +- libgo/Makefile.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libgo/Makefile.am b/libgo/Makefile.am index 9d2c8efd54d..c40456f62f6 100644 --- a/libgo/Makefile.am +++ b/libgo/Makefile.am @@ -1511,7 +1511,7 @@ libgo_go_objs = \ libgo_la_SOURCES = $(runtime_files) -libgo_la_LDFLAGS = $(PTHREAD_CFLAGS) +libgo_la_LDFLAGS = $(PTHREAD_CFLAGS) $(AM_LDFLAGS) libgo_la_LIBADD = \ $(libgo_go_objs) $(LIBFFI) $(PTHREAD_LIBS) $(MATH_LIBS) $(NET_LIBS) diff --git a/libgo/Makefile.in b/libgo/Makefile.in index 540366db6c5..10f86f168d1 100644 --- a/libgo/Makefile.in +++ b/libgo/Makefile.in @@ -1848,7 +1848,7 @@ libgo_go_objs = \ testing/script.lo libgo_la_SOURCES = $(runtime_files) -libgo_la_LDFLAGS = $(PTHREAD_CFLAGS) +libgo_la_LDFLAGS = $(PTHREAD_CFLAGS) $(AM_LDFLAGS) libgo_la_LIBADD = \ $(libgo_go_objs) $(LIBFFI) $(PTHREAD_LIBS) $(MATH_LIBS) $(NET_LIBS) -- 2.30.2