diff options
| author | David Lönnhager <david.l@mullvad.net> | 2022-08-22 11:58:23 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2022-08-23 13:38:32 +0200 |
| commit | 4bc2e5e0a18e0414a26d54804f717eea31eeb139 (patch) | |
| tree | 01b3ecd8659a53487e853582e2bcb73768f75c58 | |
| parent | 83f90cc8282d75be1b5121921b9808c1bc38a06c (diff) | |
| download | mullvadvpn-4bc2e5e0a18e0414a26d54804f717eea31eeb139.tar.xz mullvadvpn-4bc2e5e0a18e0414a26d54804f717eea31eeb139.zip | |
Use correct strip binary for cross-compilation
| -rwxr-xr-x | build.sh | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -206,8 +206,13 @@ function sign_win { function build { local current_target=${1:-""} local for_target_string="" + local stripbin="strip" if [[ -n $current_target ]]; then for_target_string=" for $current_target" + + if [[ "$current_target" == "aarch64-unknown-linux-gnu" && "$(uname -m)" != "aarch64" ]]; then + stripbin="aarch64-linux-gnu-strip" + fi fi ################################################################################ @@ -282,7 +287,7 @@ function build { cp "$source" "$destination" else log_info "Stripping $source => $destination" - strip "$source" -o "$destination" + "${stripbin}" "$source" -o "$destination" fi if [[ "$SIGN" == "true" && "$(uname -s)" == "MINGW"* ]]; then |
