diff --git a/tools/testing/radix-tree/Makefile b/tools/testing/radix-tree/Makefile
index 4c6289c5d415983afd7b38af51f832b40cdd1e11..6a9480c03cbdfce0ae5e29e32f2cedcc342d66e1 100644
--- a/tools/testing/radix-tree/Makefile
+++ b/tools/testing/radix-tree/Makefile
@@ -13,6 +13,7 @@ endif
 
 ifeq ($(BUILD), 32)
 	CFLAGS += -m32
+	LDFLAGS += -m32
 endif
 
 targets: mapshift $(TARGETS)