Subject: libX11 underlinking problem: undefined reference to 'dlopen' and 'dlsym'

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

Package: nx-libs
Version: 3.5.0.30

Downstream bugreport: https://bugs.gentoo.org/show_bug.cgi?id=546868

With gold linker, compilation will fail with:
../../exports/lib/libNX_X11.so: error: undefined reference to 'dlopen'
../../exports/lib/libNX_X11.so: error: undefined reference to 'dlsym'

This is caused by libX11 not getting linked with libdl while using these 
symbols, attached patch adds "-ldl" to REQUIREDLIBS

-- 
Bernard Cafarelli (Voyageur)
Gentoo developer (NX, GNUstep, net-misc, llvm/clang, ...)