[buildd-tools-devel] Bug#526860: schroot links library dependencies through LD_FLAGS instead of LIBS

Nick Fortino nfortino at gmail.com
Mon May 4 02:37:01 UTC 2009


Package: schroot
Version: 1.2.1-1ubuntu2
Severity: minor
Tags: patch

 From configure.ac, schroot links in libraries via the LD_FLAGS 
variable, rather than the standard LIBS variable. This causes failures 
in the configure stage when the --as-needed is used, as the link order 
is wrong.

http://www.gentoo.org/proj/en/qa/asneeded.xml has a verbose treatise on 
the subject, the case at the bottom of the page being the relevant failure.

$ LDFLAGS="-Wl,--as-needed" ./configure
[snip]
checking for boost::program_options::variables_map in 
-lboost_program_options-mt... yes
checking for boost::program_options::options_description::options() in 
-lboost_program_options-mt... no
checking for boost::regex in -lboost_regex-mt... no
configure: error: in 
`/var/tmp/portage/dev-util/schroot-9999/work/schroot-9999':
configure: error: libboost_regex (Boost C++ Libraries) is not installed, 
but is required by schroot
See `config.log' for more details.

$ ./configure succeeds just fine.

Attached is a patch, based on the latest git checkout.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Link-libraries-through-LIBS-instead-of-LD_FLAGS.patch
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20090503/9c99ea8b/attachment.txt>


More information about the Buildd-tools-devel mailing list