From e1bf233eb1e11bdc986e01ce51c5c049edc071cd Mon Sep 17 00:00:00 2001 From: Alexander Aksenov Date: Thu, 24 Dec 2015 18:29:33 +0300 Subject: [PATCH] [FIX] UIHV: add build flags Add -mno-unaligned-access -mfloat-abi=soft to fix unaligned access. Change-Id: I1a2c522391bcedd84c419bf650efe5a181c9ccf3 Signed-off-by: Alexander Aksenov --- ui_viewer/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui_viewer/Makefile b/ui_viewer/Makefile index e374284..4fe0fc9 100644 --- a/ui_viewer/Makefile +++ b/ui_viewer/Makefile @@ -1,6 +1,6 @@ CC := gcc -COMM_FLAGS := -Wall -g -O0 +COMM_FLAGS := -Wall -g -O2 DEBUG_FLAGS = \ -DDEBUG \ @@ -44,7 +44,6 @@ WARN_CFLAGS = -g \ -Xlinker \ --no-undefined \ -Wextra \ - -O2 \ -Wwrite-strings \ -Wlogical-op \ -Wpacked \ @@ -59,7 +58,7 @@ FLAGS := \ $(WARN_CFLAGS) ifeq (arm, $(findstring arm, $(shell uname -sm))) - FLAGS += -DDEVICE_ONLY + FLAGS += -DDEVICE_ONLY -mno-unaligned-access -mfloat-abi=soft endif -- 2.7.4