From 4688013f73f6df977c5ab0fef1731e53928b0e25 Mon Sep 17 00:00:00 2001 From: Andrew Benson Date: Tue, 18 Jun 2024 21:21:43 -0700 Subject: [PATCH] feat: Handle Apple Silicon architectures --- src/configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/configure b/src/configure index e3a0f3a..0dfce29 100755 --- a/src/configure +++ b/src/configure @@ -1,5 +1,5 @@ #! /bin/sh -# © M E C Swanson 2008 +# © M E C Swanson 2008 # #Script to generate the mangle Makefile #supports Linux, Darwin (MacOSX Intel or PPC), and SunOS @@ -33,7 +33,7 @@ else BYTES=$3 fi -if [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "ia64" ] || [ "$ARCH" = "amd64" ] ; then +if [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "ia64" ] || [ "$ARCH" = "amd64" ] || [ "$ARCH" = "arm64" ] ; then MFLAG="-m64" elif [ "$OS" = "Darwin" ] ; then mac_64bit_compatible=`ioreg -l -p IODeviceTree | grep firmware-abi | awk '/64/{print "y"}'`