diff options
author | Harmen Stoppels <me@harmenstoppels.nl> | 2024-06-24 14:18:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-06-24 15:32:30 (GMT) |
commit | 02f3e5be6a62ecee9d4c894792455f0bb747d7f7 (patch) | |
tree | 05fb23267dbce2a9d3e962e76f126e59fcf9951a /Source/cmELF.h | |
parent | ccbbf645522f87b38ddcaa68058f621a892e8b9f (diff) | |
download | CMake-02f3e5be6a62ecee9d4c894792455f0bb747d7f7.zip CMake-02f3e5be6a62ecee9d4c894792455f0bb747d7f7.tar.gz CMake-02f3e5be6a62ecee9d4c894792455f0bb747d7f7.tar.bz2 |
file(RPATH_CHANGE ...): no-op for static binary
Setting `CMAKE_INSTALL_RPATH` on a project that contains statically
linked executables breaks the install step, since rpaths cannot be
changed.
This commit makes rpath adjustments not an error on static libraries.
Fixes #26078
Diffstat (limited to 'Source/cmELF.h')
-rw-r--r-- | Source/cmELF.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmELF.h b/Source/cmELF.h index ce8bd7f..dd37c65 100644 --- a/Source/cmELF.h +++ b/Source/cmELF.h @@ -88,6 +88,9 @@ public: std::vector<char> EncodeDynamicEntries( const DynamicEntryList& entries) const; + /** Returns true if the ELF file has a dynamic section **/ + bool HasDynamicSection() const; + /** Get the SONAME field if any. */ bool GetSOName(std::string& soname); StringEntry const* GetSOName(); |