summaryrefslogtreecommitdiffstats
path: root/package/multimedia/mpg123/mpg123.mk
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2009-01-24 10:15:05 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2009-01-24 10:15:05 +0000
commita467f95953276c99567d14a0a22424014352b273 (patch)
tree4528e030e72fa7f0281e9ebc68ee1b3f57d854b0 /package/multimedia/mpg123/mpg123.mk
parent309ff4f976cbdb56a327929efa077bb803914b46 (diff)
downloadbuildroot-novena-a467f95953276c99567d14a0a22424014352b273.tar.gz
buildroot-novena-a467f95953276c99567d14a0a22424014352b273.zip
Add fix to mpg123 for bug in ARM release toolchain causing segment violation, bug reported to gcc bugzilla
Diffstat (limited to 'package/multimedia/mpg123/mpg123.mk')
-rw-r--r--package/multimedia/mpg123/mpg123.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/package/multimedia/mpg123/mpg123.mk b/package/multimedia/mpg123/mpg123.mk
index b32681c40..7d34cdb2e 100644
--- a/package/multimedia/mpg123/mpg123.mk
+++ b/package/multimedia/mpg123/mpg123.mk
@@ -18,6 +18,10 @@ MPG123_USE_ALSA:=--with-audio=alsa
MPG123_ALSA_DEP:=alsa-lib
endif
+ifeq ($(BR2_PACKAGE_MPG123_ARM_UNROLL_FIX),y)
+MPG123_ARM_UNROLL_FIX:= -DMPG123_ARM_UNROLL_FIX
+endif
+
$(DL_DIR)/$(MPG123_SOURCE):
$(call DOWNLOAD,$(MPG123_SITE),$(MPG123_SOURCE))
@@ -31,7 +35,7 @@ $(MPG123_DIR)/.configured: $(MPG123_DIR)/.unpacked
(cd $(MPG123_DIR); rm -rf config.cache; \
$(TARGET_CONFIGURE_ARGS) \
$(TARGET_CONFIGURE_OPTS) \
- CFLAGS="$(TARGET_CFLAGS)" \
+ CFLAGS="$(TARGET_CFLAGS) $(MPG123_ARM_UNROLL_FIX)" \
LDFLAGS="$(TARGET_LDFLAGS)" \
./configure \
--target=$(REAL_GNU_TARGET_NAME) \
@@ -55,6 +59,11 @@ $(TARGET_DIR)/$(MPG123_TARGET_BIN): $(MPG123_DIR)/$(MPG123_BIN)
mpg123: uclibc $(MPG123_ALSA_DEP) $(TARGET_DIR)/$(MPG123_TARGET_BIN)
+mpg123x:
+ touch $(MPG123_DIR)/.configured
+
+mpg123-unpacked: $(MPG123_DIR)/.unpacked
+
mpg123-clean:
-$(MAKE) -C $(MPG123_DIR) clean