From de2df7e60041ce5d19d19e558579775ae97c532e Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 30 Apr 2015 09:28:37 +0200 Subject: 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. --- cmake/Modules/CMakeMacroLibtoolFile.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmake/Modules') 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 -- cgit v1.2.3