]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
make.sh: Update check for static linked qemu files
authorAdolf Belka <adolf.belka@ipfire.org>
Mon, 28 Nov 2022 13:24:15 +0000 (14:24 +0100)
committerPeter Müller <peter.mueller@ipfire.org>
Tue, 29 Nov 2022 12:44:00 +0000 (13:44 +0100)
- 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>
make.sh

diff --git a/make.sh b/make.sh
index 2e49b167383d42c247f41b26d27c2b150d78457c..413d04491e90b350d02f25d4c1d692aaad5edc5c 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -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() {