Changeset View
Changeset View
Standalone View
Standalone View
stand/defs.mk
Show First 20 Lines • Show All 129 Lines • ▼ Show 20 Lines | |||||
# 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}: | ||||
LD_FLAGS+= -m elf_i386_fbsd | LD_FLAGS+= -m elf_i386_fbsd | ||||
AFLAGS+= --32 | AFLAGS+= --32 | ||||
.endif | .endif | ||||
SSP_CFLAGS= | |||||
mhorne: MK_SSP=no is set near the beginning of the file. | |||||
# Add in the no float / no SIMD stuff and announce we're freestanding | # Add in the no float / no SIMD stuff and announce we're freestanding | ||||
# aarch64 and riscv don't have -msoft-float, but all others do. | # aarch64 and riscv don't have -msoft-float, but all others do. | ||||
CFLAGS+= -ffreestanding ${CFLAGS_NO_SIMD} | CFLAGS+= -ffreestanding ${CFLAGS_NO_SIMD} | ||||
.if ${MACHINE_CPUARCH} == "aarch64" | .if ${MACHINE_CPUARCH} == "aarch64" | ||||
CFLAGS+= -mgeneral-regs-only -ffixed-x18 -fPIC | CFLAGS+= -mgeneral-regs-only -ffixed-x18 -fPIC | ||||
.elif ${MACHINE_CPUARCH} == "riscv" | .elif ${MACHINE_CPUARCH} == "riscv" | ||||
CFLAGS+= -march=rv64imac -mabi=lp64 -fPIC | CFLAGS+= -march=rv64imac -mabi=lp64 -fPIC | ||||
CFLAGS.clang+= -mcmodel=medium | CFLAGS.clang+= -mcmodel=medium | ||||
▲ Show 20 Lines • Show All 111 Lines • Show Last 20 Lines |
MK_SSP=no is set near the beginning of the file.