summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.toolchain3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.toolchain b/Makefile.toolchain
index c89777ae7e..647bef90ed 100644
--- a/Makefile.toolchain
+++ b/Makefile.toolchain
@@ -202,6 +202,9 @@ MEMSIZE_FLAGS+=-Wl,--print-memory-usage
endif
BUILD_LDFLAGS=$(LIBFTDIUSB_LDLIBS)
HOST_LDFLAGS=$(LIBFTDIUSB_LDLIBS)
+ifneq (${HOST_SYSROOT},)
+ HOST_LDFLAGS+=--sysroot=${HOST_SYSROOT}
+endif
HOST_TEST_LDFLAGS=-Wl,-T core/host/host_exe.lds -lrt -pthread -rdynamic -lm\
-fuse-ld=bfd -no-pie \
$(if $(TEST_COVERAGE), --coverage,) \