aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/kconfig-frontends/files/0001-Avoid-using-hard-coded-usr-include-paths.patch
blob: ac20e9b88e629ead948ce960a06ed2e8b75eea10 (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
33
From 2bd01e844096ab4ecaaab8eccfbfdc721a136d01 Mon Sep 17 00:00:00 2001
From: Mark Hatle <mark.hatle@amd.com>
Date: Tue, 22 Aug 2023 12:28:01 -0600
Subject: [PATCH] Avoid using hard coded /usr/include paths

The system could end up using an include path that points to the host
system instead of the sysroot.  Force the system to use the sysroot.

Upstream-Status: Inappropriate [configuration]

Signed-off-by: Mark Hatle <mark.hatle@amd.com>
---
 configure.ac | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 150bc50..4dc684f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -344,10 +344,6 @@ AS_IF(
     [test "$need_panel_menu" = "yes" -o "$need_panel_menu" = "auto"],
     [AC_SUBST([ncurses_nconf_CPPFLAGS])
      AC_SUBST([ncurses_panel_menu_LIBS])
-     AS_CASE(
-        [$CURSES_LOC],
-        [ncursesw/*],[ncurses_nconf_CPPFLAGS="-I/usr/include/ncursesw"],
-        [ncurses/*],[ncurses_nconf_CPPFLAGS="-I/usr/include/ncurses"])
      LIBS_old="$LIBS"
      LIBS=
      AC_SEARCH_LIBS(
-- 
2.34.1