diff options
author | Mikhail Kashkarov <m.kashkarov@partner.samsung.com> | 2019-05-31 00:43:44 +0300 |
---|---|---|
committer | Mikhail Kashkarov <m.kashkarov@partner.samsung.com> | 2019-05-31 01:06:34 +0300 |
commit | 93803bc19b3ee9cd77ce783ca5ec3646992bdab1 (patch) | |
tree | 8667f8c1e8c1abd8aa8c8aeb735ad2251df57f2a /packaging/qemu-accel-aarch64.spec | |
parent | 1359e4dbfecabab05500d06a8621919150a6dc38 (diff) | |
download | qemu-accel-sandbox/mkashkarov/annobin.tar.gz qemu-accel-sandbox/mkashkarov/annobin.tar.bz2 qemu-accel-sandbox/mkashkarov/annobin.zip |
Disable gnu compiler acceleration with enabled annobin plugin.sandbox/mkashkarov/annobin
Change-Id: I64514052fcbb1c48c6cff4ae3910728e47578163
Diffstat (limited to 'packaging/qemu-accel-aarch64.spec')
-rw-r--r-- | packaging/qemu-accel-aarch64.spec | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packaging/qemu-accel-aarch64.spec b/packaging/qemu-accel-aarch64.spec index 6c2ebbb..1415e94 100644 --- a/packaging/qemu-accel-aarch64.spec +++ b/packaging/qemu-accel-aarch64.spec @@ -443,6 +443,15 @@ awk '/post "/ && !x {print " post \"echo '%{our_path}/lib' >> /etc/ld.so.conf\" find %{buildroot}%{our_path}%{_libdir} -name 'ld-*.so' -delete sed -e '\|%{our_path}%{_libdir}/ld-[[:digit:]].*\.so|d' -i %{_sourcedir}/all-accel.list +# We could not use annobin plugin that runs on armv7l/aarch64-tizen-linux-gnu +# compiler but build on a x86_64/i586 due to different ABI's layout. Disable +# cc1/cc1plus acceleration. +%if 0%{?annobin_verification} +find %{buildroot}%{our_path} -name 'cc1' -delete -or -name 'cc1plus' -delete +sed -e '\|%{our_path}/.*cc1$|d' -i %{_sourcedir}/all-accel.list +sed -e '\|%{our_path}/.*cc1plus$|g' -i %{_sourcedir}/all-accel.list +%endif + # allow build of baselibs.conf sed -e "/targettype %{cross} block!/d" -i %{_sourcedir}/baselibs.conf |