mirror of
https://github.com/holub/mame
synced 2025-04-19 07:00:31 +03:00
workaround to fix cross compilation to x86 from a x64 host
This commit is contained in:
parent
f47c225bd5
commit
58dde95d07
30
makefile
30
makefile
@ -293,6 +293,21 @@ else
|
||||
UNAME := $(shell uname -mps)
|
||||
TARGETOS := $(OS)
|
||||
|
||||
#-------------------------------------------------
|
||||
# determine the whether -m32, -m64 or nothing
|
||||
# should be passed to gcc when building genie
|
||||
#-------------------------------------------------
|
||||
|
||||
ifeq ($(ARCHITECTURE),_x86)
|
||||
MPARAM := -m32
|
||||
else
|
||||
ifeq ($(ARCHITECTURE),_x64)
|
||||
MPARAM := -m64
|
||||
else
|
||||
MPARAM :=
|
||||
endif
|
||||
endif
|
||||
|
||||
ARCHITECTURE := _x86
|
||||
|
||||
ifeq ($(firstword $(filter x86_64,$(UNAME))),x86_64)
|
||||
@ -405,21 +420,6 @@ CC := $(SILENT)gcc
|
||||
LD := $(SILENT)g++
|
||||
CXX:= $(SILENT)g++
|
||||
|
||||
#-------------------------------------------------
|
||||
# determine the whether -m32, -m64 or nothing
|
||||
# should be passed to gcc when building genie
|
||||
#-------------------------------------------------
|
||||
|
||||
ifeq ($(ARCHITECTURE),_x86)
|
||||
MPARAM := -m32
|
||||
else
|
||||
ifeq ($(ARCHITECTURE),_x64)
|
||||
MPARAM := -m64
|
||||
else
|
||||
MPARAM :=
|
||||
endif
|
||||
endif
|
||||
|
||||
#-------------------------------------------------
|
||||
# specify OSD layer: windows, sdl, etc.
|
||||
# build scripts will be run from
|
||||
|
Loading…
Reference in New Issue
Block a user