Reputation: 71
I currently have a problem compiling with gitian-builder.
It tells me this:
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libcrypto.a(dso_dlfcn.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line
Does anyone know how to fix this?
I don't find anything useful.
Many thanks in advance!
Upvotes: 4
Views: 4129
Reputation: 51
Try the following
set(CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE} -ldl")
Upvotes: 5