summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlava Barinov <v.barinov@samsung.com>2021-01-28 10:46:12 +0300
committerSlava Barinov <v.barinov@samsung.com>2021-01-28 17:50:59 +0300
commitb02e1d23c564081e9f65f893c499165990b7c678 (patch)
tree21fa1f0e84a7ddfd37d071e81dd17674df0ec3fd
parentd2e29bb724ad518ecf564da46048e2d8358d72eb (diff)
downloadqemu-accel-sandbox/vbarinov/arch.tar.gz
qemu-accel-sandbox/vbarinov/arch.tar.bz2
qemu-accel-sandbox/vbarinov/arch.zip
Change-Id: I42ec917550c4b1d1d7063030c45fc311294f6efd
-rw-r--r--packaging/qemu-accel-armv7hl.spec4
1 files changed, 4 insertions, 0 deletions
diff --git a/packaging/qemu-accel-armv7hl.spec b/packaging/qemu-accel-armv7hl.spec
index 0cd6f0a..b9b79f7 100644
--- a/packaging/qemu-accel-armv7hl.spec
+++ b/packaging/qemu-accel-armv7hl.spec
@@ -510,6 +510,10 @@ sed -i -e "s,#PLUGIN_POSTUN#,ln -sf liblto_plugin.so.0 ${target_liblto_plugin},"
awk '/post "/ && !x {print " post \"echo export\\ CLANG_NO_LIBDIR_SUFFIX=1 >> /etc/profile\""; print $0; x=1;next} 1' %{_sourcedir}/baselibs.conf > baselibs_updated && mv baselibs_updated %{_sourcedir}/baselibs.conf
}
+%{?armv7hl:
+awk '/post "/ && !x {print " post \"cd /usr/bin/ && cp armv7l-tizen-linux-gnueabi-gcc armv7hl-tizen-linux-gnueabihf-gcc && cp armv7l-tizen-linux-gnueabi-g++ armv7hl-tizen-linux-gnueabihf-g++ && cp armv7l-tizen-linux-gnueabi-c++ armv7hl-tizen-linux-gnueabihf-c++ && cp cpp armv7hl-tizen-linux-gnueabihf-cpp && sed -e s/armv7l-tizen-linux-gnueabi/armv7hl-tizen-linux-gnueabihf/g -i /usr/lib/rpm/macros && sed -e s/armv7l/armv7hl/g -i /usr/lib/rpm/macros\""; print $0; x=1;next} 1' %{_sourcedir}/baselibs.conf > baselibs_updated && mv baselibs_updated %{_sourcedir}/baselibs.conf
+}
+
%{?multilib:
awk '/post "/ && !x {print " post \"echo '%{emul_path}/lib' >> /etc/ld.so.conf\"\n"; print $0; x=1;next} 1' %{_sourcedir}/baselibs.conf > baselibs_updated && mv baselibs_updated %{_sourcedir}/baselibs.conf
}