$NetBSD: patch-src_Makefile,v 1.1 2018/12/29 15:55:50 triaxx Exp $

Fix PR pkg/40047
Thanks to Ondrej Tuma

--- src/Makefile.orig	2018-12-29 15:47:29.689517593 +0000
+++ src/Makefile
@@ -100,7 +100,7 @@ all:	build
 build:	gkrellm
 
 gkrellm static: $(OBJS)
-	$(CC) $(OBJS) -o gkrellm$(if $(findstring static,$@),.static -static) $(LIBS) $(LINK_FLAGS)
+	$(CC) $(OBJS) -o gkrellm$(if $(findstring static,$@),.static -static) -Wl,-export-dynamic $(LIBS) $(LINK_FLAGS)
 
 install: gkrellm
 	$(INSTALL_DIR) $(INSTALLDIR)
