Place -lusb-1.0 as the last of the linker options
[fw/stlink] / gdbserver / Makefile
index a8d1b90aa3b35dda5ba88637e1b65ddb51a9c798..a10a0d82793ff6cbae3b6104a3473a123d79a7fb 100644 (file)
@@ -9,7 +9,7 @@ OBJS = gdb-remote.o gdb-server.o
 
 CFLAGS+=-g -Wall -Werror -std=gnu99 -I../src
 CFLAGS+=-DCONFIG_USE_LIBUSB=1
-LDFLAGS=-lusb-1.0 -L.. -lstlink 
+LDFLAGS=-L.. -lstlink -lusb-1.0
 
 ifeq ($(CONFIG_USE_LIBSG),)
 CONFIG_USE_LIBSG=1