e09e1873a1
Recently, the autoconf macros for libtool started using '/usr/bin/file' to determine the type of library that is generated by the toolchain. Packages that use this recent version of the libtool autoconf macros will fail in a rather dramatic way when /usr/bin/file is not present on the host: the package will still build but no shared library is generated, which in turn may cause build failures in other packages that link with it. For example, libpng's configure determines that it is not possible to build a shared library on MIPS64 because the expected output from 'file' is not present. Therefore, only a static libpng.a is built. Later, bandwithd links with -lpng but it doesn't use the pkg-config's Private-Libs (because it's not linking statically) and it doesn't have access to the NEEDED reference from the shared library. Therefore, it doesn't link with zlib and fails with pngrutil.c:(.text+0x55c): undefined reference to `inflate' We cant use host-file because it is itself an autotools package and is itself using libtool, so this would be a chicken-n-egg problem. Besides, the libtool script really wants to call /usr/bin/file, so it would not even find our host-file anyway. So, just require that '/usr/bin/file' is present on the host. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Arnout Vandecappelle <arnout@mind.be> Cc: Baruch Siach <baruch@tkos.co.il> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> |
||
---|---|---|
.. | ||
adding-board-support.txt | ||
adding-packages-asciidoc.txt | ||
adding-packages-autotools.txt | ||
adding-packages-cmake.txt | ||
adding-packages-conclusion.txt | ||
adding-packages-directory.txt | ||
adding-packages-generic.txt | ||
adding-packages-gettext.txt | ||
adding-packages-hooks.txt | ||
adding-packages-kconfig.txt | ||
adding-packages-kernel-module.txt | ||
adding-packages-linux-kernel-spec-infra.txt | ||
adding-packages-luarocks.txt | ||
adding-packages-perl.txt | ||
adding-packages-python.txt | ||
adding-packages-rebar.txt | ||
adding-packages-tips.txt | ||
adding-packages-virtual.txt | ||
adding-packages-waf.txt | ||
adding-packages.txt | ||
advanced.txt | ||
appendix.txt | ||
beyond-buildroot.txt | ||
br2-external-converting.txt | ||
ccache-support.txt | ||
common-usage.txt | ||
configure-other-components.txt | ||
configure.txt | ||
contribute.txt | ||
customize-configuration.txt | ||
customize-device-permission-tables.txt | ||
customize-directory-structure.txt | ||
customize-outside-br.txt | ||
customize-packages.txt | ||
customize-patches.txt | ||
customize-post-image.txt | ||
customize-quick-guide.txt | ||
customize-rootfs.txt | ||
customize-users-tables.txt | ||
customize.txt | ||
debugging-buildroot.txt | ||
developers.txt | ||
download-infra.txt | ||
download-location.txt | ||
eclipse-integration.txt | ||
faq-troubleshooting.txt | ||
getting.txt | ||
how-buildroot-works.txt | ||
introduction.txt | ||
known-issues.txt | ||
legal-notice.txt | ||
make-tips.txt | ||
makedev-syntax.txt | ||
makeusers-syntax.txt | ||
manual.mk | ||
manual.txt | ||
package-make-target.txt | ||
patch-policy.txt | ||
prerequisite.txt | ||
quickstart.txt | ||
rebuilding-packages.txt | ||
resources.txt | ||
using-buildroot-debugger.txt | ||
using-buildroot-development.txt | ||
using-buildroot-toolchain.txt | ||
writing-rules.txt |