Changeset View
Changeset View
Standalone View
Standalone View
head/stand/defs.mk
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
# Machine specific flags for all builds here | # Machine specific flags for all builds here | ||||
# All PowerPC builds are 32 bit. We have no 64-bit loaders on powerpc | # All PowerPC builds are 32 bit. We have no 64-bit loaders on powerpc | ||||
# or powerpc64. | # or powerpc64. | ||||
.if ${MACHINE_ARCH} == "powerpc64" | .if ${MACHINE_ARCH} == "powerpc64" | ||||
CFLAGS+= -m32 -mcpu=powerpc | CFLAGS+= -m32 -mcpu=powerpc | ||||
# Use ld.bfd to workaround ld.lld issues on PowerPC 32 bit | |||||
.if "${COMPILER_TYPE}" == "clang" && "${LINKER_TYPE}" == "lld" | |||||
CFLAGS+= -fuse-ld=${LD_BFD} | |||||
.endif | |||||
.endif | .endif | ||||
# For amd64, there's a bit of mixed bag. Some of the tree (i386, lib*32) is | # For amd64, there's a bit of mixed bag. Some of the tree (i386, lib*32) is | ||||
# build 32-bit and some 64-bit (lib*, efi). Centralize all the 32-bit magic here | # build 32-bit and some 64-bit (lib*, efi). Centralize all the 32-bit magic here | ||||
# and activate it when DO32 is explicitly defined to be 1. | # and activate it when DO32 is explicitly defined to be 1. | ||||
.if ${MACHINE_ARCH} == "amd64" && ${DO32:U0} == 1 | .if ${MACHINE_ARCH} == "amd64" && ${DO32:U0} == 1 | ||||
CFLAGS+= -m32 | CFLAGS+= -m32 | ||||
# LD_FLAGS is passed directly to ${LD}, not via ${CC}: | # LD_FLAGS is passed directly to ${LD}, not via ${CC}: | ||||
▲ Show 20 Lines • Show All 128 Lines • Show Last 20 Lines |