diff options
author | Chase Douglas <chase.douglas@ubuntu.com> | 2011-12-14 10:29:22 -0800 |
---|---|---|
committer | Chase Douglas <chase.douglas@ubuntu.com> | 2011-12-14 10:29:22 -0800 |
commit | 286707f7a39ce7daa753994f35776ff2f273f07e (patch) | |
tree | a80f974ce849205b22b63184c8c60eff160bef2b | |
parent | 6f0204791b3057ad49719675f30810c1b2755aff (diff) |
Don't link gtest when creating library
-rw-r--r-- | m4/gtest.m4 | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/m4/gtest.m4 b/m4/gtest.m4 index d7e0b85..6c3fc28 100644 --- a/m4/gtest.m4 +++ b/m4/gtest.m4 @@ -18,12 +18,7 @@ AC_DEFUN([AC_CHECK_GTEST], AC_LANG_PUSH(C++) - # We need to get to the 5th arg to link with -lpthread too. Mimic the default - # AC_CHECK_LIB action when found. - AC_CHECK_LIB([gtest], [main], - [AC_DEFINE(HAVE_LIBGTEST) LIBS="-lgtest $LIBS"], - [], - [-lpthread]) + AC_CHECK_LIB([gtest], [main], [:], [:], [-lpthread]) AC_LANG_POP ]) # AC_CHECK_GTEST |