summaryrefslogtreecommitdiff
path: root/packaging/qemu-accel-armv7l.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/qemu-accel-armv7l.spec')
-rw-r--r--packaging/qemu-accel-armv7l.spec2
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/qemu-accel-armv7l.spec b/packaging/qemu-accel-armv7l.spec
index bd36086..b15b8f6 100644
--- a/packaging/qemu-accel-armv7l.spec
+++ b/packaging/qemu-accel-armv7l.spec
@@ -130,7 +130,7 @@ This package is used in qemu-accel to accelerate clang compiler.
%install
set +x
-gcc_version=`gcc --version | sed -ne '1s/[^0-9]*\(\([0-9]\.\?\)*\).*/\1/p'`
+gcc_version=`%{target_arch}-gcc --version | sed -ne '1s/[^ ]*[^0-9]*\(\([0-9]\.\?\)*\).*/\1/p'`
# just like it is determided in python.spec
python_version=`python --version 2>&1 | sed -ne '1s/.* //p' | head -c 3`