]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
alsa-lib: add patch to remove hardcoded -ldl
authorThomas De Schampheleire <patrickdepinguin@gmail.com>
Sun, 23 Feb 2014 10:11:17 +0000 (11:11 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 23 Feb 2014 11:32:29 +0000 (12:32 +0100)
commitffd7a00aef72359c630046fbb84d735a9f06db8a
tree19e934e4027fb8b9d4a9dd9a621419189ba58c32
parent8d911f9b7bd7beac94a3255b29ebe432405d511f
alsa-lib: add patch to remove hardcoded -ldl

The AM_PATH_ALSA macro in utils/alsa.m4 unconditionally uses -ldl. This
breaks compilation of alsa-utils (and probably other packages using this
macro) for targets that do not support dynamic loading, such as for
Blackfin FLAT binaries.

This patch updates the macro to check if dlopen is available, and use that
result to conditionally add -ldl to the list of libraries.

Fixes
http://autobuild.buildroot.org/results/de2/de286880973be956f6c504aa9a758171d6f49674/build-end.log

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/alsa-lib/alsa-lib-0004-conditional-enabling-of-libdl-in-m4.patch [new file with mode: 0644]