ldc-developers/ldc — Issue #14: undefined reference to `dladdr'
Author: SiegeLord
Created: 2011-10-30 03:23:52+00:00
State: open

Compiling the revision 52c6347ef7e548952ac5e22115e0b9ea05f11a0d results in these error messages:

Linking CXX executable ../bin/ldc
/usr/lib/llvm-2.9/lib/libLLVMSupport.a(Signals.o): In function `PrintStackTrace(void*)':
(.text+0x6c): undefined reference to `dladdr'
/usr/lib/llvm-2.9/lib/libLLVMSupport.a(Signals.o): In function `PrintStackTrace(void*)':
(.text+0x187): undefined reference to `dladdr'

Workabout is to do add this define when running cmake:

-DCMAKE_EXE_LINKER_FLAGS=-ldl