From eb20195a101af2e699a025b6fd5d656612c75a1e Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Fri, 4 Feb 2022 14:40:42 +0800 Subject: [PATCH] mw_debug: Link urjtag statically liburjtag isn't in Debian, so usually we're pointing at a urjtag build directory when building mw_debug Signed-off-by: Matt Johnston --- scripts/mw_debug/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mw_debug/Makefile b/scripts/mw_debug/Makefile index a669e74..e35fffa 100644 --- a/scripts/mw_debug/Makefile +++ b/scripts/mw_debug/Makefile @@ -4,7 +4,7 @@ CFLAGS = -O2 -g -Wall -std=c99 all: mw_debug mw_debug: mw_debug.c - $(CC) -o $@ $^ $(CFLAGS) -lurjtag + $(CC) -o $@ $^ $(CFLAGS) -Wl,-Bstatic -lurjtag -Wl,-Bdynamic -lftdi1 -lusb-1.0 -lreadline clean: rm -f mw_debug