From: Matt Johnston Date: Fri, 4 Feb 2022 06:40:42 +0000 (+0800) Subject: mw_debug: Link urjtag statically X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eb20195a101af2e699a025b6fd5d656612c75a1e;p=microwatt.git 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 --- 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