Place -lusb-1.0 as the last of the linker options
authorChris Samuelson <csamuelson@swingpal.com>
Sun, 23 Oct 2011 02:23:53 +0000 (21:23 -0500)
committerChris Samuelson <csamuelson@swingpal.com>
Sun, 23 Oct 2011 02:23:53 +0000 (21:23 -0500)
Makefile
flash/Makefile
gdbserver/Makefile

index c5bb1d9a1f082db033aea7d5da793578475537c2..943302e0487fdfcb20358f82179e05d5137464db 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ VPATH=src
 SOURCES_LIB=stlink-common.c stlink-usb.c
 OBJS_LIB=$(SOURCES_LIB:.c=.o)
 TEST_PROGRAMS=test_usb
-LDFLAGS=-lusb-1.0 -L. -lstlink
+LDFLAGS=-L. -lstlink -lusb-1.0
 
 ifeq ($(CONFIG_USE_LIBSG),)
 CONFIG_USE_LIBSG=1
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
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