[Buildroot] [PATCH v2, 2/2] package/netsurf: fix build with ccache
Arnout Vandecappelle
arnout at mind.be
Mon Apr 25 19:34:07 UTC 2022
On 22/04/2022 23:21, Fabrice Fontaine wrote:
> Update second patch to fix the following build failure with ccache:
>
> /home/autobuild/autobuild/instance-11/output-1/build/netsurf-3.10/tmpusr/share/netsurf-buildsystem/makefiles/Makefile.tools:413: *** Unable to detect toolchain. Stop.
>
> Fixes:
> - http://autobuild.buildroot.org/results/b4ba19d7dcff1b0ee2b1546598b5ae6e9257a16d
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Applied to master, thanks.
Regards,
Arnout
> ---
> Changes v1 -> v2 (after review of Arnout Vandecappelle):
> - Update patch instead of using HOST_NOCCACHE)
>
> package/netsurf/0002-do-not-cross-compile-nsgenbind.patch | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/package/netsurf/0002-do-not-cross-compile-nsgenbind.patch b/package/netsurf/0002-do-not-cross-compile-nsgenbind.patch
> index 2d4637511e..7caad47a20 100644
> --- a/package/netsurf/0002-do-not-cross-compile-nsgenbind.patch
> +++ b/package/netsurf/0002-do-not-cross-compile-nsgenbind.patch
> @@ -8,6 +8,8 @@ the build, so it should not be built with the cross-compiler, but with
> the native compiler.
>
> Signed-off-by: Francois Perrad <francois.perrad at gadz.org>
> +[Fabrice: add quotes around BUILD_CC to fix build with ccache]
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
> ---
> Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> @@ -21,7 +23,7 @@ index f279f01..5698c87 100644
> # prefixed install macro for each host sub target
> define do_build_prefix_install
> - $(MAKE) install --directory=$1 HOST=$(BUILD) PREFIX=$(TMP_PREFIX) Q=$(Q) DESTDIR=
> -+ $(MAKE) install --directory=$1 HOST=$(BUILD) CC=$(BUILD_CC) PREFIX=$(TMP_PREFIX) Q=$(Q) DESTDIR=
> ++ $(MAKE) install --directory=$1 HOST=$(BUILD) CC="$(BUILD_CC)" PREFIX=$(TMP_PREFIX) Q=$(Q) DESTDIR=
>
> endef
>
More information about the buildroot
mailing list