* Michael Bienia <[email protected]> [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 [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: 
http://lists.debian.org/[email protected]

Reply via email to