commit | b5bce1e4851c108e54f570a3a76b2322ec2bfce7 | [log] [tgz] |
---|---|---|
author | Max <msuraev@sysmocom.de> | Thu Jun 30 12:58:49 2016 +0200 |
committer | Max <msuraev@sysmocom.de> | Thu Jun 30 12:58:49 2016 +0200 |
tree | 60dc3573b587a2c4f74d50d2f6f702263148a403 | |
parent | 9be0d2f1a853191fc93e666cb9e0ec39df344ec1 [diff] |
Fix build on Ubuntu Linked libraries supposed to come _after_ the objects which uses functions from them.
diff --git a/src/Makefile b/src/Makefile index adc3e89..d2536b5 100644 --- a/src/Makefile +++ b/src/Makefile
@@ -6,10 +6,10 @@ all: db_test hlr db_test: db_test.o rand_fake.o $(OBJS) - $(CC) $(LDFLAGS) -o $@ $^ + $(CC) -o $@ $^ $(LDFLAGS) hlr: hlr.o gsup_server.o gsup_router.o rand_urandom.o $(OBJS) - $(CC) $(LDFLAGS) -o $@ $^ + $(CC) -o $@ $^ $(LDFLAGS) %.o: %.c $(CC) $(CFLAGS) -o $@ -c $^