From 59a7e8b47013d20bab69da14da0cda9aa635d74f Mon Sep 17 00:00:00 2001 From: Chris Samuelson Date: Sat, 22 Oct 2011 21:23:53 -0500 Subject: [PATCH] Place -lusb-1.0 as the last of the linker options --- Makefile | 2 +- flash/Makefile | 2 +- gdbserver/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.30.2