Changeset View
Changeset View
Standalone View
Standalone View
share/mk/bsd.endian.mk
Show All 10 Lines | |||||
LOCALEDEF_ENDIAN= -l | LOCALEDEF_ENDIAN= -l | ||||
.elif ${MACHINE_ARCH} == "powerpc" || \ | .elif ${MACHINE_ARCH} == "powerpc" || \ | ||||
${MACHINE_ARCH} == "powerpc64" || \ | ${MACHINE_ARCH} == "powerpc64" || \ | ||||
${MACHINE_ARCH} == "powerpcspe" | ${MACHINE_ARCH} == "powerpcspe" | ||||
TARGET_ENDIANNESS= 4321 | TARGET_ENDIANNESS= 4321 | ||||
CAP_MKDB_ENDIAN= -b | CAP_MKDB_ENDIAN= -b | ||||
LOCALEDEF_ENDIAN= -b | LOCALEDEF_ENDIAN= -b | ||||
.elif ${.MAKE.OS} == "FreeBSD" | .elif ${.MAKE.OS} == "FreeBSD" | ||||
.error "Don't know the endian of this architecture" | .error Don't know the endian of this architecture | ||||
.else | .else | ||||
# | # | ||||
# During bootstrapping on !FreeBSD OSes, we need to define some value. Short of | # During bootstrapping on !FreeBSD OSes, we need to define some value. Short of | ||||
# having an exhaustive list for all variants of Linux and MacOS we simply do not | # having an exhaustive list for all variants of Linux and MacOS we simply do not | ||||
# set TARGET_ENDIANNESS and poison the other variables. They should be unused | # set TARGET_ENDIANNESS and poison the other variables. They should be unused | ||||
# during the bootstrap phases (apart from one place that's adequately protected | # during the bootstrap phases (apart from one place that's adequately protected | ||||
# in bsd.compiler.mk) where we're building the bootstrap tools. | # in bsd.compiler.mk) where we're building the bootstrap tools. | ||||
# | # | ||||
CAP_MKDB_ENDIAN= -B # Poisoned value, invalid flags for both cap_mkdb | CAP_MKDB_ENDIAN= -B # Poisoned value, invalid flags for both cap_mkdb | ||||
LOCALEDEF_ENDIAN= -B # and localedef. | LOCALEDEF_ENDIAN= -B # and localedef. | ||||
.endif | .endif |