浏览代码

magrathea: Tell cmELF about DT_RUNPATH (#13497)

Our Linux release machine 'magrathea' has a very old Linux to help build
portable binaries.  It is so old that <elf.h> does not define the
DT_RUNPATH constant.  Define the correct value in the build flags to
activate handling of ELF RUNPATH entries in the binary release.
Brad King 13 年之前
父节点
当前提交
c0f89e9c14
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Utilities/Release/magrathea_release.cmake

+ 2 - 0
Utilities/Release/magrathea_release.cmake

@@ -3,6 +3,8 @@ set(HOST magrathea)
 set(MAKE_PROGRAM "make")
 set(MAKE_PROGRAM "make")
 set(CC gcc332s)
 set(CC gcc332s)
 set(CXX c++332s)
 set(CXX c++332s)
+set(CFLAGS   -DDT_RUNPATH=29)
+set(CXXFLAGS -DDT_RUNPATH=29)
 set(INITIAL_CACHE "
 set(INITIAL_CACHE "
 CMAKE_BUILD_TYPE:STRING=Release
 CMAKE_BUILD_TYPE:STRING=Release
 CURSES_LIBRARY:FILEPATH=/usr/i686-gcc-332s/lib/libncurses.a
 CURSES_LIBRARY:FILEPATH=/usr/i686-gcc-332s/lib/libncurses.a