mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
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
9990da25ea
commit
d9ad2b357b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=320735
|
@ -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…
Reference in a new issue