summaryrefslogtreecommitdiffstats
path: root/meta-linaro/recipes-extra/hiphopvm/files/hrw-check-for-libdwarf-in-our-place-first.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-linaro/recipes-extra/hiphopvm/files/hrw-check-for-libdwarf-in-our-place-first.patch')
-rw-r--r--meta-linaro/recipes-extra/hiphopvm/files/hrw-check-for-libdwarf-in-our-place-first.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-linaro/recipes-extra/hiphopvm/files/hrw-check-for-libdwarf-in-our-place-first.patch b/meta-linaro/recipes-extra/hiphopvm/files/hrw-check-for-libdwarf-in-our-place-first.patch
new file mode 100644
index 0000000..bcc8352
--- /dev/null
+++ b/meta-linaro/recipes-extra/hiphopvm/files/hrw-check-for-libdwarf-in-our-place-first.patch
@@ -0,0 +1,32 @@
1From: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
2
3We have two files named dwarf.h:
4- /usr/include/dwarf.h from elfutils
5- /usr/include/libdwarf/dwarf.h from libdwarf
6
7HHVM checks for dwarf.h and assumes that libdwarf.h is in same directory which
8is wrong for OE and probably also in RedHat based systems (Debian handles it in
9other way).
10
11Upstream-Status: pending
12
13---
14 CMake/FindLibDwarf.cmake | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17--- git.orig/CMake/FindLibDwarf.cmake
18+++ git/CMake/FindLibDwarf.cmake
19@@ -18,12 +18,12 @@ endif (LIBDWARF_LIBRARIES AND LIBDWARF_I
20
21 find_path (DWARF_INCLUDE_DIR
22 NAMES
23 dwarf.h
24 PATHS
25- /usr/include
26 /usr/include/libdwarf
27+ /usr/include
28 /usr/local/include
29 /opt/local/include
30 /sw/include
31 ENV CPATH) # PATH and INCLUDE will also work
32