summaryrefslogtreecommitdiffstats
path: root/recipes-extended/libvirt/libvirt-1.3.5/configure.ac-search-for-rpc-rpc.h-in-the-sysroot.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-extended/libvirt/libvirt-1.3.5/configure.ac-search-for-rpc-rpc.h-in-the-sysroot.patch')
-rw-r--r--recipes-extended/libvirt/libvirt-1.3.5/configure.ac-search-for-rpc-rpc.h-in-the-sysroot.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes-extended/libvirt/libvirt-1.3.5/configure.ac-search-for-rpc-rpc.h-in-the-sysroot.patch b/recipes-extended/libvirt/libvirt-1.3.5/configure.ac-search-for-rpc-rpc.h-in-the-sysroot.patch
new file mode 100644
index 00000000..edbadb63
--- /dev/null
+++ b/recipes-extended/libvirt/libvirt-1.3.5/configure.ac-search-for-rpc-rpc.h-in-the-sysroot.patch
@@ -0,0 +1,36 @@
1From f10477f0fe5e4b7487a4a41faa216d10cd2bc7c3 Mon Sep 17 00:00:00 2001
2From: Mark Asselstine <mark.asselstine@windriver.com>
3Date: Thu, 10 May 2018 12:05:04 -0400
4Subject: [PATCH] configure.ac: search for rpc/rpc.h in the sysroot
5
6We want to avoid host contamination and use the sysroot as the base
7directory for our search so add the '=' the the '-I' when searching
8for libtirpc's rpc.h header.
9
10Upstream-Status: Inappropriate [old release]
11
12Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
13---
14 configure.ac | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
16
17diff --git a/configure.ac b/configure.ac
18index 5a6408c..6c19f6d 100644
19--- a/configure.ac
20+++ b/configure.ac
21@@ -705,10 +705,10 @@ if test x"$with_remote" = x"yes" || test x"$with_libvirtd" = x"yes"; then
22 dnl check for cygwin's variation in xdr function names
23 AC_CHECK_FUNCS([xdr_u_int64_t],[],[],[#include <rpc/xdr.h>])
24
25- dnl Cygwin/recent glibc requires -I/usr/include/tirpc for <rpc/rpc.h>
26+ dnl Cygwin/recent glibc requires -I=/usr/include/tirpc for <rpc/rpc.h>
27 old_CFLAGS=$CFLAGS
28 AC_CACHE_CHECK([where to find <rpc/rpc.h>], [lv_cv_xdr_cflags], [
29- for add_CFLAGS in '' '-I/usr/include/tirpc' 'missing'; do
30+ for add_CFLAGS in '' '-I=/usr/include/tirpc' 'missing'; do
31 if test x"$add_CFLAGS" = xmissing; then
32 lv_cv_xdr_cflags=missing; break
33 fi
34--
352.7.4
36