diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index c36862bcd..3b6eb03ba 100644 --- a/src/Makefile.housekeeping +++ b/src/Makefile.housekeeping @@ -268,6 +268,11 @@ ifeq ($(CROSS_COMPILE),) CROSS_COMPILE := $(CROSS_COMPILE_$(ARCH)) endif +# Set cross-compilation sysroot automatically if not specified +ifeq ($(SYSROOT),) +SYSROOT := $(SYSROOT_$(ARCH)) +endif + endif # defined(BIN) ###############################################################################