From 5eeef2edcc30e07e6355f616a4b77ecccf12dfcc Mon Sep 17 00:00:00 2001 From: jarvik7 Date: Sun, 29 Mar 2015 12:19:16 +0900 Subject: [PATCH] Autodetect architecture in makefile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Can now build a 32bit version. Note that all your dependencies will also need to support 32-bit. Install SDL2, libel, libvorbis, openal-soft in Homebrew using ‘--universal’ flag --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 778c95bf..f63bd22b 100755 --- a/Makefile +++ b/Makefile @@ -73,7 +73,7 @@ WITH_SYSTEMDIR:="" # You have to make sure your libs/frameworks supports # these architectures! To build an universal ppc-compatible # one would add -arch ppc for example. -OSX_ARCH:=-arch x86_64 +OSX_ARCH:=-arch $(shell uname -m | sed -e s/i.86/i386/) # This will set the build options to create an MacOS .app-bundle. # The app-bundle itself will not be created, but the runtime paths