bsd.stand.mk revision 287227
1# $FreeBSD: head/share/mk/bsd.stand.mk 287227 2015-08-27 23:46:42Z imp $ 2# 3# Common definitons for programs building in the stand-alone environment 4# and/or using libstand. 5# 6 7CFLAGS+= -ffreestanding -Wformat 8CFLAGS+= ${CFLAGS_NO_SIMD} -msoft-float -D_STANDALONE 9 10.if ${MACHINE_CPUARCH} == "i386" 11CFLAGS.gcc+= -mpreferred-stack-boundary=2 12.endif 13.if ${MACHINE_CPUARCH} == "amd64" 14CFLAGS+= -fPIC -mno-red-zone 15.endif 16.if ${MACHINE} == "pc98" 17CFLAGS+= -Os 18.endif 19.if ${MACHINE_CPUARCH} == "aarch64" 20CFLAGS+= -mgeneral-regs-only 21.endif 22.if ${MACHINE_CPUARCH} == "mips" 23CFLAGS+= -G0 -fno-pic -mno-abicalls 24.endif 25