Index: simias/src/core/FlaimProvider/FlaimWrapper/Makefile.am =================================================================== --- simias.orig/src/core/FlaimProvider/FlaimWrapper/Makefile.am 2010-01-08 18:51:33.008276340 -0200 +++ simias/src/core/FlaimProvider/FlaimWrapper/Makefile.am 2010-01-08 18:52:13.758276141 -0200 @@ -91,7 +91,7 @@ lib=@LIB64@ # NOTE: The following is a _hack_. -LIBFLAIM_LIBS_HACK = "-lpthread -lrt -lstdc++ -ldl -lncurses /usr/$(lib)/libflaim.a" +LIBFLAIM_LIBS_HACK = $(shell pkg-config --libs libflaim) libFlaimWrapper_la_LDFLAGS = $(LIBFLAIM_LIBS_HACK)