From: Peter Korsgaard Date: Thu, 6 Dec 2012 19:39:50 +0000 (-0800) Subject: alsa-lib: fix build on bfin X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a6d3456f3e7965f30648fd09ef54b13109d210d;p=buildroot.git alsa-lib: fix build on bfin Bfin toolchains don't have versionsort (which alsa-lib needs), so fake it using alphasort instead. Fixes http://autobuild.buildroot.net/results/cf760651b2e238842813bf0882011b5fbb898c0d Signed-off-by: Peter Korsgaard --- diff --git a/package/alsa-lib/alsa-lib.mk b/package/alsa-lib/alsa-lib.mk index eddd3d2f36..ba222db3a8 100644 --- a/package/alsa-lib/alsa-lib.mk +++ b/package/alsa-lib/alsa-lib.mk @@ -70,6 +70,12 @@ ifeq ($(BR2_SOFT_FLOAT),y) ALSA_LIB_CONF_OPT += --with-softfloat endif +ifeq ($(BR2_bfin),y) +# blackfin external toolchains don't have versionsort. Fake it using alphasort +# instead +ALSA_LIB_CFLAGS += -Dversionsort=alphasort +endif + ALSA_LIB_CONF_ENV = CFLAGS="$(ALSA_LIB_CFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS) -lm"