summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlava Barinov <v.barinov@samsung.com>2021-09-16 17:20:27 +0300
committerSlava Barinov <v.barinov@samsung.com>2021-09-16 17:20:27 +0300
commitbba18617d55a88724632cc260e1f2a7096729506 (patch)
treea7fc75c6beb7aa0f911ab1e575c824ae4c68ef8d
parent7f2a7911f9d9b0237b945a3c84cc99fd6dc77499 (diff)
downloadqemu-accel-sandbox/vbarinov/clang-build.tar.gz
qemu-accel-sandbox/vbarinov/clang-build.tar.bz2
qemu-accel-sandbox/vbarinov/clang-build.zip
Set up CLANG_NO_LIBDIR_SUFFIX for armv7hlsandbox/vbarinov/clang-build
Change-Id: Ic9f5c06072cc5e9fd70444a6a84e15b24742698c Signed-off-by: Slava Barinov <v.barinov@samsung.com>
-rw-r--r--packaging/qemu-accel-aarch64.spec5
-rw-r--r--packaging/qemu-accel-armv7hl.spec5
-rw-r--r--packaging/qemu-accel-armv7l.spec5
-rw-r--r--packaging/qemu-accel.spec.in5
4 files changed, 20 insertions, 0 deletions
diff --git a/packaging/qemu-accel-aarch64.spec b/packaging/qemu-accel-aarch64.spec
index 1dc49ec..3af86fc 100644
--- a/packaging/qemu-accel-aarch64.spec
+++ b/packaging/qemu-accel-aarch64.spec
@@ -544,6 +544,11 @@ sed -e "s,#CLANG_POSTIN#,rpm -qa --qf '%%%%{NAME}' | grep force-options \&\& chm
# Use /usr/lib for cross clang libdir on armv7l architecture
%{?armv7l:
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
+ }
+
+# Use /usr/lib for cross clang libdir on armv7hl architecture
+%{?armv7hl:
+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
}
%{?multilib:
diff --git a/packaging/qemu-accel-armv7hl.spec b/packaging/qemu-accel-armv7hl.spec
index 503edf9..a6abca4 100644
--- a/packaging/qemu-accel-armv7hl.spec
+++ b/packaging/qemu-accel-armv7hl.spec
@@ -544,6 +544,11 @@ sed -e "s,#CLANG_POSTIN#,rpm -qa --qf '%%%%{NAME}' | grep force-options \&\& chm
# Use /usr/lib for cross clang libdir on armv7l architecture
%{?armv7l:
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
+ }
+
+# Use /usr/lib for cross clang libdir on armv7hl architecture
+%{?armv7hl:
+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
}
%{?multilib:
diff --git a/packaging/qemu-accel-armv7l.spec b/packaging/qemu-accel-armv7l.spec
index 69d9734..9ac8c81 100644
--- a/packaging/qemu-accel-armv7l.spec
+++ b/packaging/qemu-accel-armv7l.spec
@@ -544,6 +544,11 @@ sed -e "s,#CLANG_POSTIN#,rpm -qa --qf '%%%%{NAME}' | grep force-options \&\& chm
# Use /usr/lib for cross clang libdir on armv7l architecture
%{?armv7l:
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
+ }
+
+# Use /usr/lib for cross clang libdir on armv7hl architecture
+%{?armv7hl:
+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
}
%{?multilib:
diff --git a/packaging/qemu-accel.spec.in b/packaging/qemu-accel.spec.in
index e205b56..447d87a 100644
--- a/packaging/qemu-accel.spec.in
+++ b/packaging/qemu-accel.spec.in
@@ -541,6 +541,11 @@ sed -e "s,#CLANG_POSTIN#,rpm -qa --qf '%%%%{NAME}' | grep force-options \&\& chm
# Use /usr/lib for cross clang libdir on armv7l architecture
%{?armv7l:
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
+ }
+
+# Use /usr/lib for cross clang libdir on armv7hl architecture
+%{?armv7hl:
+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
}
%{?multilib: