Commit 3509866
committed
Set CMAKE_POSITION_INDEPENDENT_CODE in tests
/usr/bin/ld: ../../../lib/libgtest.a(gtest-all.cc.o): warning: relocation against _ZTVN7testing8internal11MatcherBaseISt17basic_string_viewIcSt11char_traitsIcEEEE' in read-only section .text._ZN7testing8internal11MatcherBaseISt17basic_string_viewIcSt11char_traitsIcEEEC2INS0_9EqMatcherINSt7__cxx1112basic_stringIcS4_SaIcEEEEEvEEOT_[_ZN7testing8internal11MatcherBaseISt17basic_string_viewIcSt11char_traitsIcEEEC5INS0_9EqMatcherINSt7__cxx1112basic_stringIcS4_SaIcEEEEEvEEOT_]'
/usr/bin/ld: ../../../lib/libgmock.a(gmock-all.cc.o): relocation R_X86_64_PC32 against symbol _ZN7testing19FLAGS_gmock_verboseB5cxx11E' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value1 parent 0c206eb commit 3509866
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
0 commit comments