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.
This commit is contained in:
Holger Hans Peter Freyther 2011-07-17 18:05:08 +02:00
parent f1c60623ae
commit 5953e90599
1 changed files with 1 additions and 1 deletions

View File

@ -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 $^