diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2024-02-06 05:00:13 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2024-02-06 05:00:13 +0000 |
commit | 005724b4d0a5e9facaa95c003c63fe851634b4b7 (patch) | |
tree | 40ebb22a60a9a96eb0a5a32f579f2abd0658a973 /gnu/lib/libcompiler_rt/Makefile | |
parent | a7da4ee1aaa4935147a93e34d61869f19ad53f77 (diff) |
Fix RTARCH in our Makefile and lets us access riscv-specific implementations
This brings us fp_mode.c used in softfloat code, and muldi3.S used when
the target ISA doesn't have the Multiply extension.
ok kettenis@
Diffstat (limited to 'gnu/lib/libcompiler_rt/Makefile')
-rw-r--r-- | gnu/lib/libcompiler_rt/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gnu/lib/libcompiler_rt/Makefile b/gnu/lib/libcompiler_rt/Makefile index 89db447998a..b2dfb53c0d3 100644 --- a/gnu/lib/libcompiler_rt/Makefile +++ b/gnu/lib/libcompiler_rt/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.6 2021/12/28 15:45:17 patrick Exp $ +# $OpenBSD: Makefile,v 1.7 2024/02/06 05:00:12 jca Exp $ .include <bsd.own.mk> @@ -21,6 +21,8 @@ CPPFLAGS+= -DVISIBILITY_HIDDEN RTARCH= x86_64 .elif ${MACHINE_ARCH} == "powerpc" RTARCH= ppc +.elif ${MACHINE_ARCH} == "riscv64" +RTARCH= riscv .else RTARCH= ${MACHINE_ARCH} .endif @@ -301,7 +303,7 @@ SRCS+= comparetf2.c \ SRCS+= atomic_lock_free.c .endif -.if ${RTARCH} == "riscv64" +.if ${RTARCH} == "riscv" SRCS+= comparetf2.c \ extenddftf2.c \ extendsftf2.c \ |