summaryrefslogtreecommitdiff
path: root/packaging/gcc-armv7l.spec
diff options
context:
space:
mode:
authorDenis Khalikov <d.khalikov@partner.samsung.com>2018-07-05 13:04:58 +0300
committerDenis Khalikov <d.khalikov@partner.samsung.com>2018-07-06 12:40:41 +0300
commit2a2c39cdfa172cbac364069947a3b9e4fe84e8e7 (patch)
tree3b785364bca04b9205f3a4fb19e7e949cb22b3c9 /packaging/gcc-armv7l.spec
parentf4955bb607f6b1b73f7957e83388375064737359 (diff)
downloadlinaro-gcc-2a2c39cdfa172cbac364069947a3b9e4fe84e8e7.tar.gz
linaro-gcc-2a2c39cdfa172cbac364069947a3b9e4fe84e8e7.tar.bz2
linaro-gcc-2a2c39cdfa172cbac364069947a3b9e4fe84e8e7.zip
packaging: Add -marm and -fno-omit-frame-pointer
To enable "fastunwinder" work on armv7l we should explicitly build libasan with -marm and -fno-omit-frame-pointer. Change-Id: I28e763fa7b088aa26a81e7bb6d3a7fa9ba7a714b
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