Subject: Bug#853: With patch attached

From: Bernard Cafarelli <[email-masked]>
Date: Fri, 24 Apr 2015 15:59:11 +0200

Tested with gold linker from binutils 2.25 and current nx-libs/x2go 
packages

--- nx-X11/lib/X11/Imakefile.orig	2015-04-24 15:24:36.171666957 +0200
+++ nx-X11/lib/X11/Imakefile	2015-04-24 15:25:17.516179627 +0200
@@ -107,7 +107,7 @@
 EXCLUDE_SYMBOL = -Wl,--exclude-symbol,XdmcpWrap:_XdmcpWrapperToOddParity
 #endif
 
-REQUIREDLIBS=$(REQUIREDX11LIBS) $(REQUIREDI18NLIBS) $(EXCLUDE_SYMBOL) $(NX_REQUIREDLIBS)
+REQUIREDLIBS=$(REQUIREDX11LIBS) $(REQUIREDI18NLIBS) $(EXCLUDE_SYMBOL) $(NX_REQUIREDLIBS) -ldl
 
 #if defined(MacIIArchitecture) || defined(SequentArchitecture) || defined(i386ScoArchitecture)
 XBSDLIB = /**/