Skip to content

Commit

Permalink
Generate a libgtest.la to help libtool managing dependencies
Browse files Browse the repository at this point in the history
When building and using googletest from an install tree
we want libtool to generate rpath in the dependent binaries
to allow them to be executed from a build without a need
for LD_LIBRARY_PATH or similar.

For libtool based project this happens automatically
as projects generates .la files and install them.
Provide such a file for gtest as well to allow it to
work smoothly with libtool based projects.

Signed-off-by: Knut Omang <knut.omang@oracle.com>
  • Loading branch information
Knut Omang committed Feb 11, 2019
1 parent 9a502a5 commit f4d3cdb
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions googletest/cmake/libgtest.la.in
@@ -0,0 +1,21 @@
# libgtest.la - a libtool library file
# Generated by libtool (GNU libtool) 2.4.6

# Please DO NOT delete this file!
# It is necessary for linking the library.

# Names of this library.
library_names='libgtest.so'

# Is this an already installed library?
installed=yes

# Should we warn about portability when linking against -modules?
shouldnotlink=no

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='@CMAKE_INSTALL_FULL_LIBDIR@'

0 comments on commit f4d3cdb

Please sign in to comment.