summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
Diffstat (limited to 'packaging')
-rw-r--r--packaging/gcc-aarch64.spec7
-rw-r--r--packaging/gcc-armv7hl.spec7
-rw-r--r--packaging/gcc-armv7l.spec7
-rw-r--r--packaging/linaro-gcc.spec7
4 files changed, 24 insertions, 4 deletions
diff --git a/packaging/gcc-aarch64.spec b/packaging/gcc-aarch64.spec
index 7a34932bc3f..965c0e84e88 100644
--- a/packaging/gcc-aarch64.spec
+++ b/packaging/gcc-aarch64.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
diff --git a/packaging/gcc-armv7hl.spec b/packaging/gcc-armv7hl.spec
index a5aef378785..2c05eed1361 100644
--- a/packaging/gcc-armv7hl.spec
+++ b/packaging/gcc-armv7hl.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
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
diff --git a/packaging/linaro-gcc.spec b/packaging/linaro-gcc.spec
index 9de25fc8347..038f8e2124f 100644
--- a/packaging/linaro-gcc.spec
+++ b/packaging/linaro-gcc.spec
@@ -664,7 +664,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