summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2007-11-28 09:13:41 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2007-11-28 09:13:41 +0000
commit90930209b4f29396c4ed1cd3a1f220cd625997f8 (patch)
tree5f5d7615914cb9bdedf4581f9089ec7158648e4d
parent04919c43a042a9132cc4a3463740a3f2650333fc (diff)
downloadbuildroot-novena-90930209b4f29396c4ed1cd3a1f220cd625997f8.tar.gz
buildroot-novena-90930209b4f29396c4ed1cd3a1f220cd625997f8.zip
Make aapcs-linux abi, dependent on ARM arch
-rw-r--r--package/alsa-lib/alsa-lib.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/package/alsa-lib/alsa-lib.mk b/package/alsa-lib/alsa-lib.mk
index 7613285ef..d3de85a61 100644
--- a/package/alsa-lib/alsa-lib.mk
+++ b/package/alsa-lib/alsa-lib.mk
@@ -11,6 +11,12 @@ ALSA_LIB_CAT:=$(BZCAT)
ALSA_LIB_BINARY:=libasound.so.2.0.0
ALSA_LIB_TARGET_BINARY:=usr/lib/$(ALSA_LIB_BINARY)
+ifeq ($(BR2_arm),y)
+ALSA_LIB_ABI:=-mabi=aapcs-linux
+else
+ALSA_LIB_ABI:=
+endif
+
$(DL_DIR)/$(ALSA_LIB_SOURCE):
$(WGET) -P $(DL_DIR) $(ALSA_LIB_SITE)/$(ALSA_LIB_SOURCE)
@@ -24,7 +30,7 @@ $(ALSA_LIB_DIR)/.configured: $(ALSA_LIB_DIR)/.unpacked
(cd $(ALSA_LIB_DIR); rm -rf config.cache; \
$(TARGET_CONFIGURE_ARGS) \
$(TARGET_CONFIGURE_OPTS) \
- CFLAGS="$(TARGET_CFLAGS) -mabi=aapcs-linux" \
+ CFLAGS="$(TARGET_CFLAGS) $(ALSA_LIB_ABI)" \
LDFLAGS="$(TARGET_LDFLAGS)" \
./configure \
--target=$(GNU_TARGET_NAME) \