1287227Simp# $FreeBSD: releng/11.0/share/mk/bsd.stand.mk 287227 2015-08-27 23:46:42Z imp $ 2287227Simp# 3287227Simp# Common definitons for programs building in the stand-alone environment 4287227Simp# and/or using libstand. 5287227Simp# 6287227Simp 7287227SimpCFLAGS+= -ffreestanding -Wformat 8287227SimpCFLAGS+= ${CFLAGS_NO_SIMD} -msoft-float -D_STANDALONE 9287227Simp 10287227Simp.if ${MACHINE_CPUARCH} == "i386" 11287227SimpCFLAGS.gcc+= -mpreferred-stack-boundary=2 12287227Simp.endif 13287227Simp.if ${MACHINE_CPUARCH} == "amd64" 14287227SimpCFLAGS+= -fPIC -mno-red-zone 15287227Simp.endif 16287227Simp.if ${MACHINE} == "pc98" 17287227SimpCFLAGS+= -Os 18287227Simp.endif 19287227Simp.if ${MACHINE_CPUARCH} == "aarch64" 20287227SimpCFLAGS+= -mgeneral-regs-only 21287227Simp.endif 22287227Simp.if ${MACHINE_CPUARCH} == "mips" 23287227SimpCFLAGS+= -G0 -fno-pic -mno-abicalls 24287227Simp.endif 25