Patrick Williams | 7784c42 | 2022-11-17 07:29:11 -0600 | [diff] [blame^] | 1 | From 20bc4e03442e15965ae3907013e9a177878f0323 Mon Sep 17 00:00:00 2001 |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 2 | From: Ross Burton <ross.burton@intel.com> |
| 3 | Date: Thu, 4 Feb 2016 16:22:50 +0000 |
| 4 | Subject: [PATCH] libffi: ensure sysroot paths are not in libffi.pc |
| 5 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 6 | libffi's configure assumes that cross-compiled builds are complicated and |
| 7 | introduces convoluted path manipulation involving gcc search paths to the |
| 8 | install paths, resulting in paths like -L/usr/lib/../lib/ appearing in |
| 9 | libffi.pc. When pkg-config is then used to obtain the linker flags for libffi |
| 10 | it can't tell that this path is on the default search path and returns |
| 11 | $SYSROOT/usr/lib/../lib which then gets written all over the target sysroot. |
| 12 | This then means the sstate can't be shared and triggers QA errors. |
| 13 | |
| 14 | As this block is generally pointless, disable it. |
| 15 | |
| 16 | Upstream-Status: Inappropriate |
| 17 | Signed-off-by: Ross Burton <ross.burton@intel.com> |
| 18 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 19 | --- |
| 20 | configure.ac | 2 +- |
| 21 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 22 | |
| 23 | diff --git a/configure.ac b/configure.ac |
Patrick Williams | 7784c42 | 2022-11-17 07:29:11 -0600 | [diff] [blame^] | 24 | index 7e8cd98..cf37e88 100644 |
Brad Bishop | c68388fc | 2019-08-26 01:33:31 -0400 | [diff] [blame] | 25 | --- a/configure.ac |
| 26 | +++ b/configure.ac |
Patrick Williams | 7784c42 | 2022-11-17 07:29:11 -0600 | [diff] [blame^] | 27 | @@ -405,7 +405,7 @@ AC_ARG_ENABLE(multi-os-directory, |
| 28 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 29 | # These variables are only ever used when we cross-build to X86_WIN32. |
| 30 | # And we only support this with GCC, so... |
| 31 | -if test "x$GCC" = "xyes"; then |
| 32 | +if false; then |
| 33 | if test -n "$with_cross_host" && |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 34 | test x"$with_cross_host" != x"no"; then |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 35 | toolexecdir='${exec_prefix}'/'$(target_alias)' |