[BACK]Return to patch-Source_cmELF.cxx CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / cmake / patches

File: [cvs.NetBSD.org] / pkgsrc / devel / cmake / patches / Attic / patch-Source_cmELF.cxx (download)

Revision 1.7, Wed Apr 26 18:19:31 2017 UTC (6 years, 11 months ago) by maya
Branch: MAIN
CVS Tags: pkgsrc-2017Q2-base, pkgsrc-2017Q2
Changes since 1.6: +11 -12 lines

cmake: revise netbsd-6 build fix patch as suggested by Brad King
TagRunPath = 0 may cause client code such as cmSystemTools::RemoveRPath
to misbehave.

Define DT_RUNPATH to the expected value (29) instead.

bump pkgrevision

$NetBSD: patch-Source_cmELF.cxx,v 1.7 2017/04/26 18:19:31 maya Exp $

cmELF: Provide DT_RUNPATH definition fallback (netbsd-6)
https://gitlab.kitware.com/cmake/cmake/merge_requests/764

--- Source/cmELF.cxx.orig	2017-04-10 15:23:07.000000000 +0000
+++ 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>