Christoph Gysin wrote:
LDFLAGS += $(shell pkg-config --libs libxml-2.0)
This places the libraries somewhere at the beginning of the arguments, but some (versions of some) compilers needs the libraries at the end. Hence the LIBS workaround.