I encountered the following issue while compiling the code:
68 94.61 /usr/bin/ld: /usr/local/lib/libgmock.a(gmock-all.cc.o): relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE
68 94.61 /usr/bin/ld: failed to set dynamic section sizes: bad value
68 94.62 collect2: error: ld returned 1 exit status
I encountered the following issue while compiling the code:
68 94.61 /usr/bin/ld: /usr/local/lib/libgmock.a(gmock-all.cc.o): relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE
68 94.61 /usr/bin/ld: failed to set dynamic section sizes: bad value
68 94.62 collect2: error: ld returned 1 exit status
68 94.63 make[2]: *** [CMakeFiles/ConnectionManagerTest.dir/build.make:148:bin/ConnectionManagerTest] 错误 1
68 94.63 make[1]: *** [CMakeFiles/Makefile2:139:CMakeFiles/ConnectionManagerTest.dir/all] 错误 2
68 94.63 make: *** [Makefile:166:all] 错误 2
How I can solve it?