libgo: Always use AM_LDFLAGS when linking libgo.la.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Apr 2011 06:01:53 +0000 (06:01 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Apr 2011 06:01:53 +0000 (06:01 +0000)
This ensures that we pass -fsplit-stack as required.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172018 138bc75d-0d04-0410-961f-82ee72b054a4

libgo/Makefile.am
libgo/Makefile.in

index 9d2c8ef..c40456f 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 540366d..10f86f1 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)