Fix build on Ubuntu
Linked libraries supposed to come _after_ the objects which uses functions from them.
This commit is contained in:
parent
1e5454467e
commit
cfaf968a17
|
@ -6,10 +6,10 @@ OBJS = auc.o db.o db_auc.o db_hlr.o logging.o
|
||||||
all: db_test hlr
|
all: db_test hlr
|
||||||
|
|
||||||
db_test: db_test.o rand_fake.o $(OBJS)
|
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)
|
hlr: hlr.o gsup_server.o gsup_router.o rand_urandom.o $(OBJS)
|
||||||
$(CC) $(LDFLAGS) -o $@ $^
|
$(CC) -o $@ $^ $(LDFLAGS)
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $^
|
$(CC) $(CFLAGS) -o $@ -c $^
|
||||||
|
|
Reference in New Issue