alsa-lib: fix build on bfin
authorPeter Korsgaard <jacmet@sunsite.dk>
Thu, 6 Dec 2012 19:39:50 +0000 (11:39 -0800)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 6 Dec 2012 19:43:27 +0000 (11:43 -0800)
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 <jacmet@sunsite.dk>
package/alsa-lib/alsa-lib.mk

index eddd3d2f369809640a70c1b7d18c11b9d1eccc58..ba222db3a893aa314da57f20280d5407e6939bef 100644 (file)
@@ -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"