move OBJECT_FMTS setting after MKCOMPAT default, so it works.

should fix mips64 builds.
This commit is contained in:
mrg 2019-02-06 11:05:30 +00:00
parent 07c9782f50
commit 6c19d726c3

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.own.mk,v 1.1100 2019/02/05 04:47:59 mrg Exp $
# $NetBSD: bsd.own.mk,v 1.1101 2019/02/06 11:05:30 mrg Exp $
# This needs to be before bsd.init.mk
.if defined(BSD_MK_COMPAT_FILE)
@ -620,18 +620,6 @@ MACHINES.sparc64= sparc64
MACHINES.vax= vax
MACHINES.x86_64= amd64
# for crunchide & ldd, define the OBJECT_FMTS used by a MACHINE_ARCH
#
OBJECT_FMTS=
.if ${MACHINE_ARCH} != "alpha" && ${MACHINE_ARCH} != "ia64"
OBJECT_FMTS+= elf32
.endif
.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH:M*64*} != ""
. if !(${MKCOMPAT:Uno} == "no" && ${MACHINE_CPU} == "mips")
OBJECT_FMTS+= elf64
. endif
.endif
# OBJCOPY flags to create a.out binaries for old firmware
# shared among src/distrib and ${MACHINE}/conf/Makefile.${MACHINE}.inc
.if ${MACHINE_CPU} == "arm"
@ -1319,6 +1307,18 @@ INSTALL_LINK?= ${INSTALL} ${INSTPRIV} ${HRDLINK} ${RENAME}
INSTALL_SYMLINK?= ${INSTALL} ${INSTPRIV} ${SYMLINK} ${RENAME}
.endif
# for crunchide & ldd, define the OBJECT_FMTS used by a MACHINE_ARCH
#
OBJECT_FMTS=
.if ${MACHINE_ARCH} != "alpha" && ${MACHINE_ARCH} != "ia64"
OBJECT_FMTS+= elf32
.endif
.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH:M*64*} != ""
. if !(${MKCOMPAT:Uyes} == "no" && ${MACHINE_CPU} == "mips")
OBJECT_FMTS+= elf64
. endif
.endif
#
# Set defaults for the USE_xxx variables.
#