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