From: Ian Lance Taylor Date: Wed, 6 Apr 2011 06:01:53 +0000 (+0000) Subject: libgo: Always use AM_LDFLAGS when linking libgo.la. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5c8e495222feb72e432b8e701961a6becf5f78b2;p=gcc.git libgo: Always use AM_LDFLAGS when linking libgo.la. This ensures that we pass -fsplit-stack as required. From-SVN: r172018 --- 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)