summaryrefslogtreecommitdiffstats
path: root/meta-linaro/recipes-extra/hiphopvm/files/hrw-check-for-libdwarf-in-our-place-first.patch
blob: bcc8352173aa919fe1f4f2f1d7987e7e98251c32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>

We have two files named dwarf.h:
- /usr/include/dwarf.h from elfutils
- /usr/include/libdwarf/dwarf.h from libdwarf

HHVM checks for dwarf.h and assumes that libdwarf.h is in same directory which
is wrong for OE and probably also in RedHat based systems (Debian handles it in
other way).

Upstream-Status: pending

---
 CMake/FindLibDwarf.cmake |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- git.orig/CMake/FindLibDwarf.cmake
+++ git/CMake/FindLibDwarf.cmake
@@ -18,12 +18,12 @@ endif (LIBDWARF_LIBRARIES AND LIBDWARF_I
 
 find_path (DWARF_INCLUDE_DIR
     NAMES
       dwarf.h
     PATHS
-      /usr/include
       /usr/include/libdwarf
+      /usr/include
       /usr/local/include
       /opt/local/include
       /sw/include
       ENV CPATH) # PATH and INCLUDE will also work