Make compiling in with the 32bit dynarec optional - also include
a switch to hardforce this
This commit is contained in:
parent
a3201b066d
commit
27a8be87d1
21
Makefile
21
Makefile
|
@ -1,6 +1,7 @@
|
||||||
DEBUG=0
|
DEBUG=0
|
||||||
HAVE_GRIFFIN=0
|
HAVE_GRIFFIN=0
|
||||||
FRONTEND_SUPPORTS_RGB565=1
|
FRONTEND_SUPPORTS_RGB565=1
|
||||||
|
FORCE_32BIT_ARCH=0
|
||||||
|
|
||||||
ifneq ($(EMSCRIPTEN),)
|
ifneq ($(EMSCRIPTEN),)
|
||||||
platform = emscripten
|
platform = emscripten
|
||||||
|
@ -23,6 +24,23 @@ ifeq ($(platform),)
|
||||||
endif
|
endif
|
||||||
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
|
||||||
system_platform = unix
|
system_platform = unix
|
||||||
ifeq ($(shell uname -a),)
|
ifeq ($(shell uname -a),)
|
||||||
|
@ -47,9 +65,6 @@ LDFLAGS :=
|
||||||
ifeq ($(platform), unix)
|
ifeq ($(platform), unix)
|
||||||
TARGET := $(TARGET_NAME)_libretro.so
|
TARGET := $(TARGET_NAME)_libretro.so
|
||||||
fpic := -fPIC
|
fpic := -fPIC
|
||||||
FORCE_32BIT := -m32
|
|
||||||
CPU_ARCH := x86_32
|
|
||||||
HAVE_DYNAREC := 1
|
|
||||||
SHARED := -shared $(FORCE_32BIT) -Wl,--version-script=link.T
|
SHARED := -shared $(FORCE_32BIT) -Wl,--version-script=link.T
|
||||||
ifneq ($(findstring Haiku,$(shell uname -a)),)
|
ifneq ($(findstring Haiku,$(shell uname -a)),)
|
||||||
LIBM :=
|
LIBM :=
|
||||||
|
|
Loading…
Reference in New Issue