diff options
author | twinaphex | 2014-12-12 03:03:55 +0100 |
---|---|---|
committer | twinaphex | 2014-12-12 03:03:55 +0100 |
commit | 27a8be87d19bfc78c2bf59d62478d1ac776a0fb4 (patch) | |
tree | 4c19ab92dd2177a7d97de5fa0aefd4ae5d0b49f5 | |
parent | a3201b066d0308262c7dda0af0e33beced18cefc (diff) | |
download | picogpsp-27a8be87d19bfc78c2bf59d62478d1ac776a0fb4.tar.gz picogpsp-27a8be87d19bfc78c2bf59d62478d1ac776a0fb4.tar.bz2 picogpsp-27a8be87d19bfc78c2bf59d62478d1ac776a0fb4.zip |
Make compiling in with the 32bit dynarec optional - also include
a switch to hardforce this
-rw-r--r-- | Makefile | 21 |
1 files changed, 18 insertions, 3 deletions
@@ -1,6 +1,7 @@ DEBUG=0 HAVE_GRIFFIN=0 FRONTEND_SUPPORTS_RGB565=1 +FORCE_32BIT_ARCH=0 ifneq ($(EMSCRIPTEN),) platform = emscripten @@ -23,6 +24,23 @@ ifeq ($(platform),) endif endif + +ifeq ($(firstword $(filter x86_64,$(UNAME))),x86_64) + +else ifeq ($(firstword $(filter amd64,$(UNAME))),amd64) + +else ifeq ($(firstword $(filter x86,$(UNAME))),x86) + FORCE_32BIT_ARCH := 1 +endif + +FORCE_32BIT := + +ifeq ($(FORCE_32BIT_ARCH),1) + HAVE_DYNAREC := 1 + FORCE_32BIT := -m32 + CPU_ARCH := x86_32 +endif + # system platform system_platform = unix ifeq ($(shell uname -a),) @@ -47,9 +65,6 @@ LDFLAGS := ifeq ($(platform), unix) TARGET := $(TARGET_NAME)_libretro.so fpic := -fPIC - FORCE_32BIT := -m32 - CPU_ARCH := x86_32 - HAVE_DYNAREC := 1 SHARED := -shared $(FORCE_32BIT) -Wl,--version-script=link.T ifneq ($(findstring Haiku,$(shell uname -a)),) LIBM := |