summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-05-15 12:36:46 +0000
committerLive session user <ubuntu@ubuntu.(none)>2010-05-15 12:45:31 +0000
commit61d12cb49d3b335b0a4ba0b8b0605fe331e2d50c (patch)
tree0c9cecb38ac51add4e21cc4882e7406cf01805a8 /CMakeLists.txt
parent90b0937bc17521ef16ef09ac722c14c2cca9dad7 (diff)
downloadmobilebling-61d12cb49d3b335b0a4ba0b8b0605fe331e2d50c.tar.gz
mobilebling-61d12cb49d3b335b0a4ba0b8b0605fe331e2d50c.tar.bz2
Cleanup linkage handling and use rpath for plugins.
rpath is generally bad because it results in stupid linkage which can break with distribution upgrades (which is the reason for previous commits which use ldconfig LIBDIR). However, it doesn't appear to be against any distribution's policy to use rpath for "internal" libraries such as plugins linking against each other - so instead of adding those rather generic names to the ld.so cache, just specify an rpath, since there is no way there would be multiple versions of a plugin at once (and even then plugins would have to manually link). This *does* stretch the boundaries allowed by distributions slightly however, since other plugins usually have to link with libcomposite and libopengl in order to load them, however we have our own system of safeguard checks to ensure that the right plugins are loaded in any case (since the linkage will change dynamically on dlopen () - the initial linkage is only there so that dlopen () will not complain when it can't find the composite and opengl libraries, but in that case, it wouldn't even matter anyways since those plugins have to be loaded in order to be useful) For distribution policy, see: http://wiki.debian.org/RpathIssue http://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 0 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d6a03d5..d444cf5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -74,10 +74,6 @@ compiz_configure_file (
${CMAKE_BINARY_DIR}/generated/compiz-common.h
)
-function (do_relink)
- execute_process (COMMAND "ldconfig" ARGS "-v" ${CMAKE_INSTALL_PREFIX})
-endfunction ()
-
install (
FILES ${CMAKE_BINARY_DIR}/generated/compiz-common.h
DESTINATION ${includedir}/compiz