diff --git a/tools/lib/api/Makefile b/tools/lib/api/Makefile
index 316f308a63ea691c4dfb258066a7f6e90bb8b199..67ff93ec1515791febc5a3fa674700481431ad4c 100644
--- a/tools/lib/api/Makefile
+++ b/tools/lib/api/Makefile
@@ -10,6 +10,7 @@ endif
 
 CC = $(CROSS_COMPILE)gcc
 AR = $(CROSS_COMPILE)ar
+LD = $(CROSS_COMPILE)ld
 
 MAKEFLAGS += --no-print-directory