a5a298af0dd6cc8e32fffd0da86b427d26824d3f
[AGL/meta-agl.git] / meta-agl-bsp / openembedded-layer / recipes-support / xmlsec1 / files / ensure-search-path-non-host.patch
1 xmlsec1: Fix configure QA error caused by host lookup path
2
3 ERROR: mc:my-sdk:xmlsec1-1.2.30-r0 do_configure: QA Issue: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities.
4
5 It will eventually arise after the configure QA as the configure script should only look at the staging sysroot dir, not at the host.
6
7 Upstream-Status: Inappropriate [embedded specific]
8 Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
9
10 --- a/configure.ac.orig   2021-01-13 14:37:42.254991177 +0000
11 +++ b/configure.ac        2021-01-13 14:40:56.546269330 +0000
12 @@ -250,8 +250,8 @@
13  dnl ==========================================================================
14  dnl Common installation locations
15  dnl ==========================================================================
16 -COMMON_INCLUDE_DIR="/usr/include /usr/local/include"
17 -COMMON_LIB_DIR="/usr/lib /usr/lib64 /usr/local/lib"
18 +COMMON_INCLUDE_DIR="${STAGING_INCDIR}"
19 +COMMON_LIB_DIR="${STAGING_LIBDIR}"
20  case $host in
21      i*86-*-linux-gnu)   COMMON_LIB_DIR="$COMMON_LIB_DIR /usr/lib/i386-linux-gnu" ;;
22      x86_64-*-linux-gnu) COMMON_LIB_DIR="$COMMON_LIB_DIR /usr/lib/x86_64-linux-gnu" ;;