aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/tests/stdlib
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2017-01-12 08:40:52 +0000
committerEnji Cooper <ngie@FreeBSD.org>2017-01-12 08:40:52 +0000
commit9527fa4f663fa848cff1018f5c92bcccfc2adeee (patch)
treef9d6d8ef665c11571315c69da98ebda194be66fd /lib/libc/tests/stdlib
parent35cfc322f1809b193bfb308d46c4f1ff083e01be (diff)
Notes
Diffstat (limited to 'lib/libc/tests/stdlib')
-rw-r--r--lib/libc/tests/stdlib/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libc/tests/stdlib/Makefile b/lib/libc/tests/stdlib/Makefile
index f2d866c4c9df..c681cb604383 100644
--- a/lib/libc/tests/stdlib/Makefile
+++ b/lib/libc/tests/stdlib/Makefile
@@ -11,6 +11,14 @@ ATF_TESTS_CXX+= cxa_thread_atexit_test
ATF_TESTS_CXX+= cxa_thread_atexit_nothr_test
.endif
+# Not sure why this isn't defined for all architectures, since most
+# have long double.
+.if ${MACHINE_CPUARCH} == "aarch64" || \
+ ${MACHINE_CPUARCH} == "amd64" || \
+ ${MACHINE_CPUARCH} == "i386"
+CFLAGS+= -D__HAVE_LONG_DOUBLE
+.endif
+
# TODO: t_getenv_thread, t_mi_vector_hash, t_strtoi
NETBSD_ATF_TESTS_C+= abs_test
NETBSD_ATF_TESTS_C+= atoi_test