From: Chris Samuelson Date: Sun, 23 Oct 2011 02:23:53 +0000 (-0500) Subject: Place -lusb-1.0 as the last of the linker options X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=59a7e8b47013d20bab69da14da0cda9aa635d74f;hp=27448f5a6f8ed867e8ddab77f5b9663e9dadc20f;p=fw%2Fstlink Place -lusb-1.0 as the last of the linker options --- diff --git a/Makefile b/Makefile index c5bb1d9..943302e 100644 --- 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 diff --git a/flash/Makefile b/flash/Makefile index 8a30b41..9fa6743 100644 --- a/flash/Makefile +++ b/flash/Makefile @@ -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 diff --git a/gdbserver/Makefile b/gdbserver/Makefile index a8d1b90..a10a0d8 100644 --- a/gdbserver/Makefile +++ b/gdbserver/Makefile @@ -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