summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/cmELF.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmELF.cxx b/Source/cmELF.cxx
index 2a8137f..d23abec 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>
@@ -154,11 +157,7 @@ public:
// Lookup the RUNPATH in the DYNAMIC section.
StringEntry const* GetRunPath()
{
-#if defined(DT_RUNPATH)
return this->GetDynamicSectionString(DT_RUNPATH);
-#else
- return 0;
-#endif
}
// Return the recorded ELF type.