From mboxrd@z Thu Jan  1 00:00:00 1970
From: Adolf Belka <adolf.belka@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH] make.sh: Update check for static linked qemu files
Date: Mon, 28 Nov 2022 14:24:15 +0100
Message-ID: <20221128132415.1572624-1-adolf.belka@ipfire.org>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0899518781297159656=="
List-Id: <development.lists.ipfire.org>

--===============0899518781297159656==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

- In Arch Linux the file -L command comes up with "static-pie linked" instead=
 of
   "statically linked"
- This patch makes the grep look for either one of those strings.

Signed-off-by: Adolf Belka <adolf.belka(a)ipfire.org>
---
 make.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/make.sh b/make.sh
index c0d1f1d2c..e214fdf3e 100755
--- a/make.sh
+++ b/make.sh
@@ -910,7 +910,7 @@ qemu_find_build_helper_name() {
 file_is_static() {
 	local file=3D"${1}"
=20
-	file -L "${file}" 2>/dev/null | grep -q "statically linked"
+	file -L "${file}" 2>/dev/null | grep -q -e "statically linked" -e "static-p=
ie linked"
 }
=20
 update_language_list() {
--=20
2.38.1


--===============0899518781297159656==--