Changeset View
Changeset View
Standalone View
Standalone View
stand/defs.mk
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Lines | |||||
CFLAGS+= -march=rv64imac -mabi=lp64 | CFLAGS+= -march=rv64imac -mabi=lp64 | ||||
.else | .else | ||||
CFLAGS+= -msoft-float | CFLAGS+= -msoft-float | ||||
.endif | .endif | ||||
.if ${MACHINE_CPUARCH} == "i386" || (${MACHINE_CPUARCH} == "amd64" && ${DO32:U0} == 1) | .if ${MACHINE_CPUARCH} == "i386" || (${MACHINE_CPUARCH} == "amd64" && ${DO32:U0} == 1) | ||||
CFLAGS+= -march=i386 | CFLAGS+= -march=i386 | ||||
CFLAGS.gcc+= -mpreferred-stack-boundary=2 | CFLAGS.gcc+= -mpreferred-stack-boundary=2 | ||||
CFLAGS.clang+= -Oz -mstack-alignment=8 | |||||
.endif | .endif | ||||
.if ${MACHINE_CPUARCH} == "amd64" && ${DO32:U0} == 0 | .if ${MACHINE_CPUARCH} == "amd64" && ${DO32:U0} == 0 | ||||
CFLAGS+= -fPIC -mno-red-zone | CFLAGS+= -fPIC -mno-red-zone | ||||
.endif | .endif | ||||
.if ${MACHINE_CPUARCH} == "arm" | .if ${MACHINE_CPUARCH} == "arm" | ||||
# Do not generate movt/movw, because the relocation fixup for them does not | # Do not generate movt/movw, because the relocation fixup for them does not | ||||
# translate to the -Bsymbolic -pie format required by self_reloc() in loader(8). | # translate to the -Bsymbolic -pie format required by self_reloc() in loader(8). | ||||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |