Place -lusb-1.0 as the last of the linker options
[fw/stlink] / flash / Makefile
index 8a30b4113a6bcebf88951810e7d83129e45f4f7d..9fa67435c4b163afed58e5e11c2a0dce4d9bb86d 100644 (file)
@@ -12,7 +12,7 @@ CFLAGS+=-std=gnu99
 CFLAGS+=-Wall -Wextra
 CFLAGS+=-I../src
 
-LDFLAGS=-lusb-1.0 -L.. -lstlink 
+LDFLAGS=-L.. -lstlink -lusb-1.0
 
 ifeq ($(CONFIG_USE_LIBSG),)
 CONFIG_USE_LIBSG=1