From 9a73a14da45ffcfa9346760123541f36dde9be2f Mon Sep 17 00:00:00 2001 From: Daniel McGregor Date: Mon, 4 Apr 2016 10:23:30 -0600 Subject: ncurses: fix build errors in some clang configurations ncurses' configure script strips the arguments from $CC when checking if -c and -o can be used together. Clang then doesn't have a default sysroot argument to use, so it checks the host for the existence of certain feature headers in libc. These checks fail, and it assumes that clang can't handle -o and -c together. Example config.log snippet: configure:2524: checking whether arm-poky-linux-gnueabi-clang understands -c and -o together configure:2540: arm-poky-linux-gnueabi-clang -c conftest.c -o conftest2.o >&5 In file included from conftest.c:1: In file included from /usr/include/stdio.h:27: In file included from /usr/include/features.h:399: /usr/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-32.h' file not found # include ^ 1 error generated. configure:2543: $? = 1 configure:2562: result: no Signed-off-by: Daniel McGregor --- recipes-core/ncurses/ncurses_%.bbappend | 1 + 1 file changed, 1 insertion(+) create mode 100644 recipes-core/ncurses/ncurses_%.bbappend (limited to 'recipes-core/ncurses') diff --git a/recipes-core/ncurses/ncurses_%.bbappend b/recipes-core/ncurses/ncurses_%.bbappend new file mode 100644 index 0000000..096d5bc --- /dev/null +++ b/recipes-core/ncurses/ncurses_%.bbappend @@ -0,0 +1 @@ +CACHED_CONFIGUREVARS_append_toolchain-clang = " cf_cv_prog_CC_c_o=yes cf_cv_prog_CXX_c_o=yes" -- cgit v1.2.3-54-g00ecf