Description

The main configure.ac confuses the correct usage of LDFLAGS and LIBS variables, for instance for botan (and log4cplus too) the result of 'botan-config --libs' is added incorrectly to LDFLAGS when it should be in LIBS. Usually it doesn't matter but if there is no libbotan.so but only a libbotan-1.8.2.so in the system library directory configure can fail to find it.

The fix is easy: put flags into FLAGS and libs into LIBS.

Subtickets

Oldest firstNewest firstThreaded

Comments only

Change History (12)

oops, the issue is not with libbotan but liblog4cplus. Anyway to check this the side effect of the confusion is to make the GNU C++ linker (collect2 in fact) spuriously dependent on the order of its arguments (i.e., 'g++ ... foo.cpp ... -l1 -l2 ...' works but 'g++ ... -l1 -l2 ... foo.cpp' fails).