Removed comment about STM32F4 limitations
[fw/stlink] / gdbserver / Makefile
index a8d1b90aa3b35dda5ba88637e1b65ddb51a9c798..85b0ac1d67b6f87d77bb54b4485558dc1398ab8d 100644 (file)
@@ -9,14 +9,14 @@ 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 
+CFLAGS+=-DCONFIG_USE_LIBSG=$(CONFIG_USE_LIBSG)
+LDFLAGS=-L.. -lstlink -lusb-1.0
 
 ifeq ($(CONFIG_USE_LIBSG),)
 CONFIG_USE_LIBSG=1
 endif
 
 ifneq ($(CONFIG_USE_LIBSG),0)
-CFLAGS+=-DCONFIG_USE_LIBSG=1
 LDFLAGS+=-lsgutils2
 endif