Skip to content

Commit

Permalink
set MACHINE for ppc64/mips, also arm-linux-gnueabi
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed Feb 28, 2022
1 parent 8a0ac6e commit 83dab8c
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions lisp/Makefile.Linux
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,24 @@ endif
GCC_MACHINE=$(shell gcc -dumpmachine)
$(info "-- GCC_MACHINE = ${GCC_MACHINE}")
ifneq ($(GCC_MACHINE),)
ifeq ($(GCC_MACHINE),x86_64-linux-gnu)
ifneq (,$(findstring x86_64-linux-gnu,$(GCC_MACHINE)))
MACHINE=x86_64
endif
ifeq ($(GCC_MACHINE),i686-linux-gnu)
MACHINE=x86
ifneq (,$(findstring i686-linux-gnu,$(GCC_MACHINE)))
MACHINE=i686
endif
ifeq ($(GCC_MACHINE),aarch64-linux-gnu)
ifneq (,$(findstring aarch64-linux-gnu,$(GCC_MACHINE)))
MACHINE=aarch64
endif
ifeq ($(GCC_MACHINE),arm-linux-gnueabihf)
ifneq (,$(findstring arm-linux-gnu,$(GCC_MACHINE)))
MACHINE=arm
endif
ifneq (,$(findstring powerpc64le-linux-gnu,$(GCC_MACHINE)))
MACHINE=ppc64le
endif
ifneq (,$(findstring mips64el-linux-gnu,$(GCC_MACHINE)))
MACHINE=mips64
endif
endif
# need to set 'i486', for conditionals in c/*.[ch].
ifneq ($(shell gcc -dumpmachine | grep "i.*86-linux"),)
Expand Down

0 comments on commit 83dab8c

Please sign in to comment.