2008-06-25 21:33:28 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2016-02-11 20:16:11 +00:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2009-02-21 15:04:31 +00:00
|
|
|
SSP_CFLAGS=
|
2016-02-09 00:15:41 +00:00
|
|
|
|
|
|
|
.if ${MACHINE_CPUARCH} == "arm"
|
|
|
|
# Do not generate movt/movw, because the relocation fixup for them does not
|
|
|
|
# translate to the -Bsymbolic -pie format required by self_reloc() in loader(8).
|
|
|
|
# Also, the fpu is not available in a standalone environment.
|
2016-02-11 20:16:11 +00:00
|
|
|
.if ${COMPILER_VERSION} < 30800
|
|
|
|
CFLAGS.clang+= -mllvm -arm-use-movt=0
|
|
|
|
.else
|
|
|
|
CFLAGS.clang+= -mno-movt
|
|
|
|
.endif
|
2016-02-09 00:15:41 +00:00
|
|
|
CFLAGS.clang+= -mfpu=none
|
|
|
|
.endif
|
2016-12-02 14:44:38 +00:00
|
|
|
|
|
|
|
# The boot loader build uses dd status=none, where possible, for reproducible
|
|
|
|
# build output (since performance varies from run to run). Trouble is that
|
|
|
|
# option was recently (10.3) added to FreeBSD and is non-standard. Only use it
|
|
|
|
# when this test succeeds rather than require dd to be a bootstrap tool.
|
|
|
|
DD_NOSTATUS!=(dd status=none count=0 2> /dev/null && echo status=none) || true
|
|
|
|
DD=dd ${DD_NOSTATUS}
|