mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-29 12:03:03 +00:00
8a4217aacf
simd / no float stuff is centeralized here. Also centralise -ffreestanding since it is specified everywhere. This, along with a change to share/mk/bsd.cpu.mk to include -mno-avx2 in CFLAGS_NO_SIMD should fix building for newer machines (eg with CPUTYPE=haswell) where clang was generating avx2 instructions. Sponsored by: Netflix
23 lines
409 B
Makefile
23 lines
409 B
Makefile
# $FreeBSD$
|
|
|
|
# Options used when building app-specific efi components
|
|
# See conf/kern.mk for the correct set of these
|
|
CFLAGS+= -Wformat
|
|
LDFLAGS+= -nostdlib
|
|
|
|
.if ${MACHINE_CPUARCH} == "amd64"
|
|
CFLAGS+= -fshort-wchar
|
|
CFLAGS+= -mno-red-zone
|
|
.endif
|
|
|
|
.if ${MACHINE_CPUARCH} == "aarch64"
|
|
CFLAGS+= -fshort-wchar
|
|
CFLAGS+= -fPIC
|
|
.endif
|
|
|
|
.if ${MACHINE_CPUARCH} == "arm"
|
|
CFLAGS+= -fPIC
|
|
.endif
|
|
|
|
.include "../Makefile.inc"
|