mirror of
https://github.com/opnsense/src.git
synced 2026-04-29 10:11:09 -04:00
For clang 3.8.0 and higher targeting arm, use the new -mno-movt flag to
disable emitting movt instructions.
This commit is contained in:
parent
a1bd240c5d
commit
67e3484f3d
1 changed files with 4 additions and 0 deletions
|
|
@ -127,7 +127,11 @@ CFLAGS+= -fPIC
|
|||
# Temporary workaround for PR 196407, which contains the fascinating details.
|
||||
# Don't allow clang to use fpu instructions or registers in kernel modules.
|
||||
.if ${MACHINE_CPUARCH} == arm
|
||||
.if ${COMPILER_VERSION} < 30800
|
||||
CFLAGS.clang+= -mllvm -arm-use-movt=0
|
||||
.else
|
||||
CFLAGS.clang+= -mno-movt
|
||||
.endif
|
||||
CFLAGS.clang+= -mfpu=none
|
||||
CFLAGS+= -funwind-tables
|
||||
.endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue