aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/Modules
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2015-04-30 09:28:37 +0200
committerPierre Ossman <ossman@cendio.se>2015-04-30 09:28:37 +0200
commitde2df7e60041ce5d19d19e558579775ae97c532e (patch)
treefddb98f178773a2d961c6628e42318bd9e79f85a /cmake/Modules
parent29a1a51c791c5d3b4f64c4d1b4dae47988829701 (diff)
downloadtigervnc-de2df7e60041ce5d19d19e558579775ae97c532e.tar.gz
tigervnc-de2df7e60041ce5d19d19e558579775ae97c532e.zip
Set libdir in generated .la files
This is needed in order to get libtool to treat them as normal libraries and not "convenience libraries". The latter are linked with --whole-archive, which pulls a lot of unnecessary stuff into Xvnc and libvnc.so.
Diffstat (limited to 'cmake/Modules')
-rw-r--r--cmake/Modules/CMakeMacroLibtoolFile.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Modules/CMakeMacroLibtoolFile.cmake b/cmake/Modules/CMakeMacroLibtoolFile.cmake
index f2ea7f80..a54d9949 100644
--- a/cmake/Modules/CMakeMacroLibtoolFile.cmake
+++ b/cmake/Modules/CMakeMacroLibtoolFile.cmake
@@ -130,7 +130,7 @@ macro(libtool_create_control_file _target)
file(APPEND ${_laname} "shouldnotlink=no\n\n")
file(APPEND ${_laname} "dlopen=''\n")
file(APPEND ${_laname} "dlpreopen=''\n\n")
- file(APPEND ${_laname} "libdir=''\n\n")
+ file(APPEND ${_laname} "libdir='/usr/lib'\n\n")
# Add custom command to symlink the static library so that autotools finds