Skip to content

Unable to disable/redefine MPARAM (-m64) for cross-compilation #7639

Open
@plaes

Description

@plaes

I'm attempting to cross-compile mame on x86_64 host targeting arm64/aarch64 platform, but unfortunately I cannot find a way to disable the -m64 being passed on to compiler:

$ CROSS_BUILD=1 \
OVERRIDE_CC=aarch64-linux-gnu-gcc \
OVERRIDE_CXX=aarch64-linux-gnu-g++ \
OVERRIDE_LD=aarch64-linux-gnu-ld \
make

...

GCC 8 detected
Precompiling src/emu/emu.h...
aarch64-linux-gnu-g++: error: unrecognized command line option ‘-m64’
aarch64-linux-gnu-g++: error: unrecognized command line option ‘-m64’
make[2]: *** [precompile.make:317: ../../../../linux_gcc/obj/x64/Release/emu.h.gch] Error 1
make[1]: *** [Makefile:94: precompile] Error 2
make: *** [makefile:1379: linux_x64] Error 2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions