[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: List of FTBFS in Ubuntu

* Michael Bienia <michael@bienia.de> [101204 12:26]:
> The problem lies 3 lines above that snippet:
> 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

If you cannot split it, the whole thing should go into LIBS.

	Bernhard R. Link

Reply to: