]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/mk/bsd.stand.mk
Update compiler-rt to 3.9.0 release, and update the build glue for
[FreeBSD/FreeBSD.git] / share / mk / bsd.stand.mk
1 # $FreeBSD$
2 #
3 # Common definitons for programs building in the stand-alone environment
4 # and/or using libstand.
5 #
6
7 CFLAGS+= -ffreestanding -Wformat
8 CFLAGS+= ${CFLAGS_NO_SIMD} -msoft-float -D_STANDALONE
9
10 .if ${MACHINE_CPUARCH} == "i386"
11 CFLAGS.gcc+=    -mpreferred-stack-boundary=2
12 .endif
13 .if ${MACHINE_CPUARCH} == "amd64"
14 CFLAGS+=        -fPIC -mno-red-zone
15 .endif
16 .if ${MACHINE} == "pc98"
17 CFLAGS+=        -Os
18 .endif
19 .if ${MACHINE_CPUARCH} == "aarch64"
20 CFLAGS+=        -mgeneral-regs-only
21 .endif
22 .if ${MACHINE_CPUARCH} == "mips"
23 CFLAGS+=        -G0 -fno-pic -mno-abicalls
24 .endif