diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2022-12-30 08:53:27 +0900 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-12-31 09:14:35 +0700 |
commit | 5c326ace764173f803ab5186dda7fced659f13dc (patch) | |
tree | 5998408e075c895fa592ac9e2be41be65767e58a /system/alacritty | |
parent | d80a2bd75563ea80099483b1f0262355326d432c (diff) |
system/alacritty: Updated ARCH detection.
This allows building on aarch64-current. No changes for any
other arches.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/alacritty')
-rw-r--r-- | system/alacritty/alacritty.SlackBuild | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/system/alacritty/alacritty.SlackBuild b/system/alacritty/alacritty.SlackBuild index 9db834bad0f7..5b5181e342ef 100644 --- a/system/alacritty/alacritty.SlackBuild +++ b/system/alacritty/alacritty.SlackBuild @@ -56,13 +56,13 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" - CARGOTARGET="--target i586-unknown-linux-gnu" + CARGOTARGET="--target $ARCH-unknown-linux-gnu" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" - CARGOTARGET="--target i686-unknown-linux-gnu" -elif [ "$ARCH" = "x86_64" ]; then + CARGOTARGET="--target $ARCH-unknown-linux-gnu" +elif [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "aarch64" ]; then SLKCFLAGS="-O2 -fPIC" - CARGOTARGET="--target x86_64-unknown-linux-gnu" + CARGOTARGET="--target $ARCH-unknown-linux-gnu" else SLKCFLAGS="-O2" CARGOTARGET="" |