make.sh: Update check for static linked qemu files

- 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@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Adolf Belka
2022-11-28 14:24:15 +01:00
committed by Peter Müller
parent dc3a5d19ac
commit 1985774f80

View File

@@ -910,7 +910,7 @@ qemu_find_build_helper_name() {
file_is_static() {
local file="${1}"
file -L "${file}" 2>/dev/null | grep -q "statically linked"
file -L "${file}" 2>/dev/null | grep -q -e "statically linked" -e "static-pie linked"
}
update_language_list() {