Autodetect architecture in makefile

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
This commit is contained in:
jarvik7 2015-03-29 12:19:16 +09:00
parent e85b6999a7
commit 5eeef2edcc
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ WITH_SYSTEMDIR:=""
# You have to make sure your libs/frameworks supports # You have to make sure your libs/frameworks supports
# these architectures! To build an universal ppc-compatible # these architectures! To build an universal ppc-compatible
# one would add -arch ppc for example. # 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. # This will set the build options to create an MacOS .app-bundle.
# The app-bundle itself will not be created, but the runtime paths # The app-bundle itself will not be created, but the runtime paths