|
From: | Riccardo Mottola |
Subject: | building libobjc2 fPIC issue and ccmake . effectiveness |
Date: | Fri, 29 May 2020 14:24:50 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53.2 |
Hi! I am trying to build libobjc2 on NetBSD Linking fails (standard system linker) [ 0%] Linking C shared library libobjc.so /usr/bin/ld: /usr/lib/libsupc++.a(eh_globals.o): relocation R_X86_64_TPOFF32 against `_ZZN12_GLOBAL__N_110get_globalEvE6global' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/libsupc++.a(si_class_type_info.o): relocation R_X86_64_PC32 against symbol `_ZTVN10__cxxabiv120__si_class_type_infoE' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: bad value clang-9: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 To follow the suggestion I used "ccmake ." and set: CMAKE_CXX_FLAGS -fPIC CMAKE_C_FLAGS -fPIC but there is no change... are these settings used after regenerating? (I have this doubt... since I have other linker related issues on OpenBSD I am about to report) Thanks for the support
[Prev in Thread] | Current Thread | [Next in Thread] |