]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Makefile: link gtest statically
authorSage Weil <sage@inktank.com>
Wed, 13 Jun 2012 18:05:43 +0000 (11:05 -0700)
committerSage Weil <sage@inktank.com>
Wed, 13 Jun 2012 18:05:53 +0000 (11:05 -0700)
commit66553d25f09f0d0cea735a862a228060b72c0ce6
treeb988a877ba5582bd726f4c67df83898ad6a867f1
parentc4a607aa1fa8c07455d947a297c72521b4c7df7d
Makefile: link gtest statically

The problem:

 - the unittests link against gtest, and gtest is not installed.  that's
   normally fine, but...
 - rbd and rados api unit tests link against gtest, and are installed
   by 'make install'.  they are needed for teuthology runs, etc.
 - if we build gtest as an .la library, we can only control whether *all*
   or *no* .la libraries are linked statically.
 - we want librados to be linked dynamically.

The solution:

 - build gtest as .a instead of a libtool library
 - link it statically, always.

Unit test binaries are bigger now.  Oh well...

Fixes: #2331
Signed-off-by: Sage Weil <sage@inktank.com>
Makefile.am
src/Makefile.am
src/gtest/Makefile.am
src/gtest/scripts/gtest-config.in