Make toolchain configration to fix mpg123 global and move to Makefile

This commit is contained in:
Ulf Samuelsson
2009-01-24 11:27:47 +00:00
parent b3f1b6a02e
commit 81a9f04114
3 changed files with 17 additions and 12 deletions

View File

@@ -88,6 +88,14 @@ ifeq ($(BR2_LARGEFILE),y)
TARGET_CFLAGS+=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
endif
# Handle bug fixes in toolchain
ifeq ($(BR2_arm),y)
ifeq ($(BR2_GCC_VERSION_4_3_2),y)
# Removes segment violation in mpg123.
TARGET_CFLAGS+=-DARM_UNROLL_FIX
endif
endif
TARGET_CXXFLAGS=$(TARGET_CFLAGS)
# else it's an external toolchain