$OpenBSD: patch-libgo_Makefile_in,v 1.1.1.1 2019/01/04 15:50:40 pascal Exp $
Index: libgo/Makefile.in
--- libgo/Makefile.in.orig
+++ libgo/Makefile.in
@@ -1083,7 +1083,8 @@ GOCOMPILE = $(GOC) $(DEFAULT_INCLUDES) $(INCLUDES) $(A
 LTGOCOMPILE = $(LIBTOOL) --tag GO --mode=compile $(GOC) $(INCLUDES) \
 	$(AM_GOCFLAGS) $(GOCFLAGS)
 
-GOLINK = $(LIBTOOL) --tag GO --mode-link $(GOC) \
+include $(top_srcdir)/../libversions
+GOLINK = $(LIBTOOL) --tag GO --mode-link $(GOC) $(LIBgo_LTVERSION) \
 	$(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_GOCFLAGS) $(LTLDFLAGS) -o $@
 
 
