compiler_rt: provide bswap buildins on sparc64
Attempting to build sparc64 world with GCC 6.3 previously failed with zstd_compress.c:(.text+0x8fc): undefined reference to `__bswapsi2'
This commit is contained in:
parent
2ebaf2e650
commit
e942cf363a
@ -225,9 +225,8 @@ SRCS+= switchu8.S
|
||||
SRCS+= sync_synchronize.S
|
||||
.endif
|
||||
|
||||
# GCC-6.3 on mips32 requires bswap32 built-in.
|
||||
.if ${MACHINE_CPUARCH} == "mips"
|
||||
# On some archs GCC-6.3 requires bswap32 built-in.
|
||||
.if ${MACHINE_CPUARCH} == "mips" || ${MACHINE_CPUARCH} == "sparc64"
|
||||
SRCS+= bswapdi2.c
|
||||
SRCS+= bswapsi2.c
|
||||
.endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user