Public bug reported: Trying to build the Mir and wlcs test suites on 18.10 Cosmic I get the error:
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libgtest.a(gtest-all.cc.o): relocation R_X86_64_PC32 against symbol `_ZTVSt9basic_iosIcSt11char_traitsIcEE@@GLIBCXX_3.4' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status I doubt Mir is the only project to make use of libgtest in shared objects. The libgtest should be compiled with -fPIC. ** Affects: googletest (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1774011 Title: Compile options prevent use in a shared library To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/googletest/+bug/1774011/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs