* Michael Bienia <mich...@bienia.de> [101204 12:26]: > The problem lies 3 lines above that snippet: > LDFLAGS="`${LOG4CPP_CONFIG} --libs` $LDFLAGS" > > using LIBS instead of LDFLAGS fixes the order as configure uses LIBS > after the source file during linking. > > When one looks at the remaining configure.ac it adds other libs (-l) to > LIBS and library directories (-L) to LDFLAGS. > But as "log4cpp-config --libs" outputs "-L/usr/lib -llog4cpp -lnsl" I'm > not sure if LDFLAGS or LIBS is the better place (but using LIBS makes > the package build again in Ubuntu).
-l is never ever to be included in LDFLAGS (even stricter than -I should never ever go into CFLAGS or CXXFLAGS, the other common mistake often done nowadays). If you cannot split it, the whole thing should go into LIBS. Bernhard R. Link -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20101204113141.ga24...@pcpool00.mathematik.uni-freiburg.de