From 5953e905994bf8c58c74220e7f0edd91c07b1bf0 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 17 Jul 2011 18:05:08 +0200 Subject: [PATCH] make: Move the LDFLAGS to the end of the link line for OpenSUSE The code does not build like this on a OpenSUSE system, it will not find the libusb and libosmocore library. --- host/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/Makefile b/host/Makefile index 4f117b1..2f3a482 100644 --- a/host/Makefile +++ b/host/Makefile @@ -3,7 +3,7 @@ LDFLAGS=-lusb `pkg-config --libs libosmocore` -losmocore all: simtrace simtrace: main.o usb_helper.o usb.o apdu_split.o - $(CC) $(LDFLAGS) -o $@ $^ + $(CC) -o $@ $^ $(LDFLAGS) %.o: %.c $(CC) $(CFLAGS) `pkg-config --cflags libosmocore` -o $@ -c $^