Closed abrca closed 7 years ago
using the new -DLINK_GCC_S=ON
(switch enable linking against gcc_s) the problem is fixed.
in CMakeLists.txt duplicate options LINKDL:
option(LINKDL "dynamicaly link dl" OFF) option(LINKDL "dynamicaly link gcc_s" OFF)
second must be LINK_GCC_S ?
yes, fixing it
Compiling statically linked executable (as described in issue #4 ), ends with error:
[100%] Linking C executable uts-server /usr/bin/ld: undefined reference to symbol `__register_frame_info@@GCC_3.0' (try adding -lgcc_s) //lib/libgcc_s.so.1: could not read symbols: Bad value c++: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1
FreeBSD 11.0, CLang 3.8.0. Using gcc 4.9.4 - compiles ok.