diff options
author | Maya Rashish <coypu@sdf.org> | 2017-04-26 13:37:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-04-26 18:00:58 (GMT) |
commit | 7146a6042991ca5ac49d400cf94d0feb2b8ae4ab (patch) | |
tree | f9e14a8e643a7f5d282b0eab1c66686b0b3d62aa /Source/cmELF.cxx | |
parent | 008570150ccd23bbaa42d7543e49fbfa5d28ade4 (diff) | |
download | CMake-7146a6042991ca5ac49d400cf94d0feb2b8ae4ab.zip CMake-7146a6042991ca5ac49d400cf94d0feb2b8ae4ab.tar.gz CMake-7146a6042991ca5ac49d400cf94d0feb2b8ae4ab.tar.bz2 |
cmELF: Define DT_RUNPATH if it isn't already defined
The value of 29 is used by binutils and is used in the System V ABI
draft from 2001.
It isn't defined on NetBSD 6.0.
Diffstat (limited to 'Source/cmELF.cxx')
-rw-r--r-- | Source/cmELF.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmELF.cxx b/Source/cmELF.cxx index 2a8137f..084cf4a 100644 --- a/Source/cmELF.cxx +++ b/Source/cmELF.cxx @@ -44,6 +44,9 @@ typedef struct Elf32_Rela Elf32_Rela; #ifdef _SCO_DS #include <link.h> // For DT_SONAME etc. #endif +#ifndef DT_RUNPATH +#define DT_RUNPATH 29 +#endif // Low-level byte swapping implementation. template <size_t s> |