diff options
author | Warner Losh <imp@FreeBSD.org> | 2017-11-20 22:42:17 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2017-11-20 22:42:17 +0000 |
commit | 8a4217aacf57330755501a349d0ea662d4880386 (patch) | |
tree | c654a0b01626c218eb3359addb4cc8cfc19d540c /stand/mips/uboot | |
parent | ca50d6799da337ffbd58dbaadfed0c9f8a969e32 (diff) | |
download | src-8a4217aacf57330755501a349d0ea662d4880386.tar.gz src-8a4217aacf57330755501a349d0ea662d4880386.zip |
Move some more common stuff up to Makefile.inc. In particular, the no
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
Notes
Notes:
svn path=/head/; revision=326038
Diffstat (limited to 'stand/mips/uboot')
-rw-r--r-- | stand/mips/uboot/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stand/mips/uboot/Makefile b/stand/mips/uboot/Makefile index b941ba342431..c605af1310e4 100644 --- a/stand/mips/uboot/Makefile +++ b/stand/mips/uboot/Makefile @@ -29,7 +29,7 @@ HELP_FILES+= help.uboot ${BOOTSRC}/fdt/help.fdt # Always add MI sources .include "${BOOTSRC}/loader.mk" -CFLAGS+= -ffreestanding -msoft-float -g +CFLAGS+= -g LDFLAGS= -nostdlib -static -T ${.CURDIR}/ldscript.${MACHINE_CPUARCH} |