Skip to content

Commit

Permalink
Reordering the unit test library link order might help, too.
Browse files Browse the repository at this point in the history
  • Loading branch information
Castaglia committed Jan 29, 2017
1 parent 696b038 commit a1dac6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Makefile.in
Expand Up @@ -51,7 +51,7 @@ TEST_API_DEPS=\
$(top_srcdir)/src/json.o \
$(top_srcdir)/src/redis.o

TEST_API_LIBS=-lcheck
TEST_API_LIBS=-lcheck -lm

TEST_API_OBJS=\
api/pool.o \
Expand Down Expand Up @@ -110,7 +110,7 @@ api/.c.o:
$(CC) $(CPPFLAGS) $(CFLAGS) -c $<

api-tests$(EXEEXT): $(TEST_API_OBJS) $(TEST_API_DEPS)
$(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) -o $@ $(TEST_API_DEPS) $(TEST_API_OBJS) $(LIBS) $(TEST_API_LIBS)
$(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) -o $@ $(TEST_API_DEPS) $(TEST_API_OBJS) $(TEST_API_LIBS) $(LIBS)
./$@

running-tests:
Expand Down

0 comments on commit a1dac6e

Please sign in to comment.