pkg-autotools: generic configure fix for powerpc64
authorSam bobroff <sam.bobroff@au1.ibm.com>
Mon, 28 Nov 2016 05:11:39 +0000 (16:11 +1100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 5 Dec 2016 21:51:17 +0000 (22:51 +0100)
commit41444d7f892b44c87d3b08e7ba1824b9cb9ee9a8
tree49e20d888f52436848ed1e7d27c7dfaeafb023b8
parent00810e0ea3976c5b26a7fd264870f15e17a2eaa2
pkg-autotools: generic configure fix for powerpc64

Many (100+) packages supported by buildroot contain old configure
scripts (or build them from old versions of autotools) that are unable
to determine how to link shared libraries on powerpc64 and
powerpc64le. This causes that test to erroneously fail on toolchains
that are not "bi-endian" (which is the case for toolchains built by
buildroot), which causes configure to build static libraries instead
of dynamic ones. Although these builds succeed, they tend to cause
linker failures in binaries later linked against them.

Because affected configure files can be discovered automatically, this
patch introduces a hook (enabled only when building for powerpc64 and
powerpc64le) that uses a script to scan and fix each package.

Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/pkg-autotools.mk
support/scripts/fix-configure-powerpc64.sh [new file with mode: 0755]