Package: gtest Version: 1.6.0-1 Severity: normal Tags: patch Dear Maintainer,
The libgtest.a library is not build with -fPIC. This inhibits linking against objects compiled with -fPIC. To fix this, the CXXFLAGS should include -fPIC for the static library. I am providing a patch that ensures -fPIC is used for all built libraries. I applied the patch for Ubuntu Precise and uploaded it as 1.6.0-1ubuntu1 in the meantime. Thanks! -- System Information: Debian Release: wheezy/sid APT prefers precise-updates APT policy: (500, 'precise-updates'), (500, 'precise-security'), (500, 'precise'), (100, 'precise-backports') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-17-generic (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -Nru gtest-1.6.0/debian/rules gtest-1.6.0/debian/rules --- gtest-1.6.0/debian/rules 2011-06-12 10:28:34.000000000 -0700 +++ gtest-1.6.0/debian/rules 2012-03-07 11:28:33.000000000 -0800 @@ -5,7 +5,7 @@ dh $@ --parallel override_dh_auto_configure: - dh_auto_configure --buildsystem=cmake -- -Dgtest_build_tests=ON + dh_auto_configure --buildsystem=cmake -- -Dgtest_build_tests=ON -DCMAKE_CXX_FLAGS="$(CXXFLAGS) -fPIC" override_dh_clean: