summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallTargetGenerator.h
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-12-18 22:50:27 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-12-18 22:50:27 (GMT)
commit3ae731fab7a3b992c321226262076a2622f64c11 (patch)
tree223da7b100533710445dde2a52243baff0883452 /Source/cmInstallTargetGenerator.h
parentf5f397debde141a15225ea52bc2768d723a27375 (diff)
downloadCMake-3ae731fab7a3b992c321226262076a2622f64c11.zip
CMake-3ae731fab7a3b992c321226262076a2622f64c11.tar.gz
CMake-3ae731fab7a3b992c321226262076a2622f64c11.tar.bz2
ENH: add support for chrpath, so the RPATH in ELF files can be changed when
installing without having to link the target again -> can save a lot of time chrpath is handled very similar to install_name_tool on the mac. If the RPATH in the build tree file is to short, it is padded using the separator character. This is currently disabled by default, it can be enabled using the option CMAKE_USE_CHRPATH. There are additional checks whether it is safe to enable it. I will rework them and use FILE(READ) instead to detect whether the binaries are actually ELF files. chrpath is available here http://www.tux.org/pub/X-Windows/ftp.hungry.com/chrpath/ or kde svn (since a few days): http://websvn.kde.org/trunk/kdesupport/chrpath/ Alex
Diffstat (limited to 'Source/cmInstallTargetGenerator.h')
-rw-r--r--Source/cmInstallTargetGenerator.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmInstallTargetGenerator.h b/Source/cmInstallTargetGenerator.h
index d03ea3d..3fdd5bf 100644
--- a/Source/cmInstallTargetGenerator.h
+++ b/Source/cmInstallTargetGenerator.h
@@ -54,6 +54,9 @@ protected:
void AddInstallNamePatchRule(std::ostream& os, Indent const& indent,
const char* config,
const std::string& toDestDirPath);
+ void AddChrpathPatchRule(std::ostream& os, Indent const& indent,
+ const char* config, std::string const& toDestDirPath);
+
void AddStripRule(std::ostream& os, Indent const& indent,
cmTarget::TargetType type,
const std::string& toDestDirPath);