Yelp/ybinlogp

Makefile: TARGETS ordering issue

ljudoed opened this issue · 1 comments

Hi,

TARGETS are ordered : ybinlogp libybinlogp.so.1 libybinlogp.so
which produces the following error

$ make all
cc -Wall -ggdb -Wextra --std=c99 -pedantic -c -o ybinlogp.o ybinlogp.c
gcc -Wall -ggdb -Wextra --std=c99 -pedantic -L. -o ybinlogp -lybinlogp ybinlogp.o
/usr/bin/ld: cannot find -lybinlogp
collect2: ld returned 1 exit status

This order fixes the problem: libybinlogp.so.1 libybinlogp.so ybinlogp,
because libybinlogp is compiled first and we need it to compile ybinlogp.

BR,
Dimo

Fixed in v0.5.7.