libgo: Always use AM_LDFLAGS when linking libgo.la.
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 6 Apr 2011 06:01:53 +0000 (06:01 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 6 Apr 2011 06:01:53 +0000 (06:01 +0000)
This ensures that we pass -fsplit-stack as required.

From-SVN: r172018

libgo/Makefile.am
libgo/Makefile.in

index 9d2c8efd54d3bf0098a39e9d0f33f485a03a2c81..c40456f62f652ef2bbe0dca921e183f7b688cfca 100644 (file)
@@ -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)
index 540366db6c58cf6bf078a0f4252dbf2c089abc93..10f86f168d1e63bec63e8c9ca8f38373a4876bc2 100644 (file)
@@ -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)