summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/gcc-10-libgo-runpath.patch
blob: bf89d7b6d455bea903bc45f54b09db603d632e76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
gccgo needs libgo but it doesn't have $libdir in its RUNPATH.  This
patch fixes that.

diff --git a/libgo/Makefile.in b/libgo/Makefile.in
index b835173585..64e45360aa 100644
--- a/libgo/Makefile.in
+++ b/libgo/Makefile.in
@@ -22,6 +22,8 @@
 
 # Process this file with autoreconf to produce Makefile.in.
 
+libgo_llgo_la_LDFLAGS = -Wl,-rpath=$(libdir)
+
 VPATH = @srcdir@
 am__is_gnu_make = { \
   if test -z '$(MAKELEVEL)'; then \