diff options
| author | Conrad Meyer <cem@FreeBSD.org> | 2018-03-18 03:42:57 +0000 |
|---|---|---|
| committer | Conrad Meyer <cem@FreeBSD.org> | 2018-03-18 03:42:57 +0000 |
| commit | 22aec4de9f9ecb7a5e1b2a663d74692cdb4cf61a (patch) | |
| tree | b71af15150edcb6016e313a7f2f12eca324e0f69 /lib/libzstd | |
| parent | 7dc5b4402b44b1d33d693f39de65cb41af58e444 (diff) | |
Notes
Diffstat (limited to 'lib/libzstd')
| -rw-r--r-- | lib/libzstd/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libzstd/Makefile b/lib/libzstd/Makefile index 304b71ca84dd..ca56bcb0c828 100644 --- a/lib/libzstd/Makefile +++ b/lib/libzstd/Makefile @@ -43,4 +43,11 @@ ZSTDDIR= ${SRCTOP}/sys/contrib/zstd CFLAGS.zstd_compress.c+= -O0 .endif +# Work around lack of __bswap[sd]i2() intrinsics on riscv. Probably should be +# added to one of the runtime C libraries instead. +.if ${MACHINE_CPUARCH} == "riscv" +.PATH: ${ZSTDDIR}/lib/freebsd +SRCS+= zstd_kfreebsd.c +.endif + .include <bsd.lib.mk> |
