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
|