summaryrefslogtreecommitdiff
path: root/packaging/gcc-armv7l.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/gcc-armv7l.spec')
-rw-r--r--packaging/gcc-armv7l.spec7
1 files changed, 6 insertions, 1 deletions
diff --git a/packaging/gcc-armv7l.spec b/packaging/gcc-armv7l.spec
index 74b06d2ee0e..638e853ab4c 100644
--- a/packaging/gcc-armv7l.spec
+++ b/packaging/gcc-armv7l.spec
@@ -667,7 +667,12 @@ echo "" > gcc/DEV-PHASE
%global gcc_release `sed -e 's/^.*-//g' %{_builddir}/gcc-%{version}/gcc/LINARO-VERSION`
%build
-%{?asan:%gcc_unforce_options}
+%{?asan:
+%gcc_unforce_options
+%ifarch armv7l
+RPM_OPT_FLAGS="$RPM_OPT_FLAGS -marm -Wa,-mimplicit-it=arm -fno-omit-frame-pointer"
+%endif
+}
rm -rf obj
mkdir obj
cd obj