aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/tests/stdlib
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2020-06-24 13:11:19 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2020-06-24 13:11:19 +0000
commit2d143336dec8a43803bfba507c5f29a625bc4137 (patch)
tree108f50e9bec9181eb718236e25cd6d34ed98e203 /lib/libc/tests/stdlib
parent7a9a01db9f8109d5dd289674979479a2f91dfb52 (diff)
Notes
Diffstat (limited to 'lib/libc/tests/stdlib')
-rw-r--r--lib/libc/tests/stdlib/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/tests/stdlib/Makefile b/lib/libc/tests/stdlib/Makefile
index f305ca579e11..da152159f8a8 100644
--- a/lib/libc/tests/stdlib/Makefile
+++ b/lib/libc/tests/stdlib/Makefile
@@ -19,11 +19,12 @@ ATF_TESTS_CXX+= cxa_thread_atexit_nothr_test
# All architectures on FreeBSD have fenv.h
CFLAGS+= -D__HAVE_FENV
-# Not sure why this isn't defined for all architectures, since most
-# have long double.
+# Define __HAVE_LONG_DOUBLE for architectures whose long double has greater
+# precision than their double.
.if ${MACHINE_CPUARCH} == "aarch64" || \
${MACHINE_CPUARCH} == "amd64" || \
- ${MACHINE_CPUARCH} == "i386"
+ ${MACHINE_CPUARCH} == "i386" || \
+ ${MACHINE_CPUARCH} == "riscv"
CFLAGS+= -D__HAVE_LONG_DOUBLE
.endif