Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | libffi's configure assumes that cross-compiled builds are complicated and |
| 2 | introduces convoluted path manipulation involving gcc search paths to the |
| 3 | install paths, resulting in paths like -L/usr/lib/../lib/ appearing in |
| 4 | libffi.pc. When pkg-config is then used to obtain the linker flags for libffi |
| 5 | it can't tell that this path is on the default search path and returns |
| 6 | $SYSROOT/usr/lib/../lib which then gets written all over the target sysroot. |
| 7 | This then means the sstate can't be shared and triggers QA errors. |
| 8 | |
| 9 | As this block is generally pointless, disable it. |
| 10 | |
| 11 | Upstream-Status: Inappropriate |
| 12 | Signed-off-by: Ross Burton <ross.burton@intel.com> |
| 13 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 14 | Index: libffi-3.2.1/configure.ac |
| 15 | =================================================================== |
| 16 | --- libffi-3.2.1.orig/configure.ac |
| 17 | +++ libffi-3.2.1/configure.ac |
| 18 | @@ -592,7 +592,7 @@ AC_ARG_ENABLE(purify-safety, |
| 19 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 20 | # These variables are only ever used when we cross-build to X86_WIN32. |
| 21 | # And we only support this with GCC, so... |
| 22 | -if test "x$GCC" = "xyes"; then |
| 23 | +if false; then |
| 24 | if test -n "$with_cross_host" && |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 25 | test x"$with_cross_host" != x"no"; then |
| 26 | toolexecdir="${exec_prefix}"/'$(target_alias)' |