summaryrefslogtreecommitdiff
path: root/toolchain/gcc/patches/6.2.0/go-libgcc.patch
blob: 3913069746c24e940823454c3a43a56f9fda9045 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -Nur gcc-6.2.0.orig/gotools/Makefile.in gcc-6.2.0/gotools/Makefile.in
--- gcc-6.2.0.orig/gotools/Makefile.in	2016-02-03 22:58:02.000000000 +0100
+++ gcc-6.2.0/gotools/Makefile.in	2016-09-04 09:29:15.582198715 +0200
@@ -259,7 +259,7 @@
 @NATIVE_TRUE@GOCOMPILER = $(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET)
 GOCOMPILE = $(GOCOMPILER) $(GOCFLAGS)
 AM_LDFLAGS = -L $(libgodir) -L $(libgodir)/.libs
-GOLINK = $(GOCOMPILER) $(GOCFLAGS) $(AM_GOCFLAGS) $(LDFLAGS) $(AM_LDFLAGS) -o $@
+GOLINK = $(GOCOMPILER) $(GOCFLAGS) $(AM_GOCFLAGS) $(LDFLAGS) -lgcc_s $(AM_LDFLAGS) -o $@
 cmdsrcdir = $(srcdir)/../libgo/go/cmd
 go_cmd_go_files = \
 	$(cmdsrcdir)/go/alldocs.go \