mirror of
https://gitea.osmocom.org/sim-card/simtrace.git
synced 2026-03-16 21:28:36 +03:00
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:
@@ -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 $^
|
||||
|
||||
Reference in New Issue
Block a user