Permalink
Browse files

busybox: Build with -fno-strict-aliasing for now

Busybox contains some aliasing violations that weren't detected
before because it was built without optimizations due to the
bug fixed in
http://review.android.git.linaro.org/#change,759
Build it with -fno-strict-aliasing until this is fixed.

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
  • Loading branch information...
1 parent e41555c commit 7610636fe38675d338929f2ee28c4d4d62f0e9c3 Bernhard Rosenkraenzer committed Oct 21, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 Android.mk
View
@@ -3,7 +3,8 @@ include $(CLEAR_VARS)
BB_TC_DIR := $(shell dirname $(TARGET_TOOLS_PREFIX))
BB_TC_PREFIX := $(shell basename $(TARGET_TOOLS_PREFIX))
BB_LDFLAGS := -Xlinker -z -Xlinker muldefs -nostdlib -Bdynamic -Xlinker -T../../$(BUILD_SYSTEM)/armelf.x -Xlinker -dynamic-linker -Xlinker /system/bin/linker -Xlinker -z -Xlinker nocopyreloc -Xlinker --no-undefined ../../$(TARGET_CRTBEGIN_DYNAMIC_O) ../../$(TARGET_CRTEND_O) -L../../$(TARGET_OUT_STATIC_LIBRARIES)
-BB_COMPILER_FLAGS := $(subst -I ,-I../../,$(subst -include ,-include ../../,$(TARGET_GLOBAL_CFLAGS))) -I../../bionic/libc/include -I../../bionic/libc/kernel/common -I../../bionic/libc/arch-arm/include -I../../bionic/libc/kernel/arch-arm -I../../bionic/libm/include -fno-stack-protector -Wno-error=format-security
+# FIXME remove -fno-strict-aliasing once all aliasing violations are fixed
+BB_COMPILER_FLAGS := $(subst -I ,-I../../,$(subst -include ,-include ../../,$(TARGET_GLOBAL_CFLAGS))) -I../../bionic/libc/include -I../../bionic/libc/kernel/common -I../../bionic/libc/arch-arm/include -I../../bionic/libc/kernel/arch-arm -I../../bionic/libm/include -fno-stack-protector -Wno-error=format-security -fno-strict-aliasing
BB_LDLIBS := dl m c gcc
ifneq ($(strip $(SHOW_COMMANDS)),)
BB_VERBOSE="V=1"

0 comments on commit 7610636

Please sign in to comment.