blob: 00cf498d15e70bbdce330885530c6765e058817f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
https://github.com/unicorn-engine/unicorn/pull/2186
From e57d319971005235cc6946f0ba9e832a339aecb1 Mon Sep 17 00:00:00 2001
From: "Z. Liu" <zhixu.liu@gmail.com>
Date: Thu, 15 May 2025 21:50:55 +0800
Subject: [PATCH] qemu/configure: make strings command can be redefined by
${STRINGS}
Signed-off-by: Z. Liu <zhixu.liu@gmail.com>
---
qemu/configure | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/qemu/configure b/qemu/configure
index e8eb427c..af3781c3 100755
--- a/qemu/configure
+++ b/qemu/configure
@@ -339,6 +339,7 @@ ld="${LD-${cross_prefix}ld}"
ranlib="${RANLIB-${cross_prefix}ranlib}"
nm="${NM-${cross_prefix}nm}"
strip="${STRIP-${cross_prefix}strip}"
+strings="${STRINGS-${cross_prefix}strings}"
pkg_config_exe="${PKG_CONFIG-${cross_prefix}pkg-config}"
query_pkg_config() {
"${pkg_config_exe}" ${QEMU_PKG_CONFIG_FLAGS} "$@"
@@ -1233,9 +1234,9 @@ int main(int argc, char *argv[]) {
EOF
if compile_object ; then
- if strings -a $TMPO | grep -q BiGeNdIaN ; then
+ if ${strings} -a $TMPO | grep -q BiGeNdIaN ; then
bigendian="yes"
- elif strings -a $TMPO | grep -q LiTtLeEnDiAn ; then
+ elif ${strings} -a $TMPO | grep -q LiTtLeEnDiAn ; then
bigendian="no"
else
echo big/little test failed
--
2.45.2
|