diff options
author | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2012-08-22 16:17:04 +0200 |
---|---|---|
committer | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2012-11-14 08:52:52 +0100 |
commit | 2b95ab99d8ceaee8c3b7b3f58f19330e91d3e4cb (patch) | |
tree | 61eb24d073572270d1e3400a79397be24aec6088 | |
parent | 876936a03ef26a2819809bb8032877da3ca360eb (diff) | |
download | build-2b95ab99d8ceaee8c3b7b3f58f19330e91d3e4cb.tar.gz |
build: Don't add -fno-strict-aliasing to HOST compiler flags
Change-Id: I07eef86f11ec3761e0922855cb6ff881c2773966
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
-rw-r--r-- | core/combo/select.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/combo/select.mk b/core/combo/select.mk index 69dccaa18c..3be3d345b5 100644 --- a/core/combo/select.mk +++ b/core/combo/select.mk @@ -47,7 +47,10 @@ $(combo_target)HAVE_STRLCAT := 0 $(combo_target)HAVE_KERNEL_MODULES := 0 $(combo_target)GLOBAL_CFLAGS := -fno-exceptions -Wno-multichar -$(combo_target)RELEASE_CFLAGS := -O3 -g -Wstrict-aliasing=2 -Werror=strict-aliasing +$(combo_target)RELEASE_CFLAGS := -O3 -g -Wstrict-aliasing=2 +ifneq ($(combo_target),HOST_) +$(combo_target)RELEASE_CFLAGS += -Werror=strict-aliasing +endif $(combo_target)GLOBAL_LDFLAGS := -Wl,-O2 $(combo_target)GLOBAL_ARFLAGS := crsP |