Skip to contentSkip to conversation

Use prefixed strings command from distro.

PATCH New Julien Durillon 1 participant 1 message Mar 25, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Use prefixed strings command from distro.

All the other tools can be prefixed/overriden by distro builders, but strings. This makes the build work in build packages like the Exherbo one.

---
 configure | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
configure +3 -2
index 6d9cb23ac5..c891b8c6ea 100755
@@ -427,6 +427,7 @@ ranlib="${RANLIB-${cross_prefix}ranlib}"
 nm="${NM-${cross_prefix}nm}"
 smbd="$SMBD"
 strip="${STRIP-${cross_prefix}strip}"
+strings="${STRINGS-${cross_prefix}strings}"
 windres="${WINDRES-${cross_prefix}windres}"
 pkg_config_exe="${PKG_CONFIG-${cross_prefix}pkg-config}"
 query_pkg_config() {
@@ -1671,9 +1672,9 @@ int main(int argc, char *argv[])
 EOF
 
 if compile_prog ; then
-    if strings -a $TMPE | grep -q BiGeNdIaN ; then
+    if $strings -a $TMPE | grep -q BiGeNdIaN ; then
         bigendian="yes"
-    elif strings -a $TMPE | grep -q LiTtLeEnDiAn ; then
+    elif $strings -a $TMPE | grep -q LiTtLeEnDiAn ; then
         bigendian="no"
     else
         echo big/little test failed
Signature · 1 line
2.35.1