alsa-lib: fix build on powerpc64 and powerpc64le
authorSam bobroff <sam.bobroff@au1.ibm.com>
Thu, 3 Nov 2016 03:25:34 +0000 (14:25 +1100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 3 Nov 2016 21:35:07 +0000 (22:35 +0100)
commit258cc58294c22e6e3c399929b14fa9192ab38fb5
tree3c04bee1bef8198656da830f93264a2ca345ae67
parent8c005353b6c517c7df84ef42fe55a42c9952f002
alsa-lib: fix build on powerpc64 and powerpc64le

Fixes linker error
http://autobuild.buildroot.net/results/c6272ac900d1a53b976839ac4f50a210b3e6b354

On powerpc64 (and powerpc64le) the build fails due to linker problems
because of an old (2003) workaround for powerpc64, presumably working
around an old toolchain problem that is no longer present. Removing
the workaround allows the build to succeed. A new patch is added for
this.

Additionally, there was a mistake in patch 3: the patch added a test
for HAVE_LIBDL to include/alsa-symbols.h but it was positioned in the
file before config.h was included, so HAVE_LIBDL is never seen as
defined.  The test was also using HAVE_LIBDL (which indicates the
library) rather than HAVE_DLFCN (which indicates the header).

Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/alsa-lib/0003-dlmisc.patch
package/alsa-lib/0005-remove-powerpc64-workaround.patch [new file with mode: 0644]