aboutsummaryrefslogtreecommitdiff
path: root/math/Makefile
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2016-10-21 18:26:53 +0200
committerFlorian Weimer <fweimer@redhat.com>2016-10-21 18:26:53 +0200
commitb3918c44db615637b26d919ce599cd86592316b3 (patch)
tree23c031ee3aaf2e2fccce583920cafb40eacdce3f /math/Makefile
parent0f04fc07f6a36e761ec76100043798ea5c7a590c (diff)
downloadglibc-b3918c44db615637b26d919ce599cd86592316b3.zip
glibc-b3918c44db615637b26d919ce599cd86592316b3.tar.gz
glibc-b3918c44db615637b26d919ce599cd86592316b3.tar.bz2
math: Define iszero as a function template for C++ [BZ #20715]
This increases compatibility with C++ code which is forced to compile with _GNU_SOURCE.
Diffstat (limited to 'math/Makefile')
-rw-r--r--math/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/math/Makefile b/math/Makefile
index 2aa6a34..7cecba5 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -165,7 +165,7 @@ tests-static = test-fpucw-static test-fpucw-ieee-static \
test-signgam-ullong-static test-signgam-ullong-init-static
ifneq (,$(CXX))
-tests += test-math-isinff
+tests += test-math-isinff test-math-iszero
endif
ifneq (no,$(PERL))
@@ -267,6 +267,7 @@ CFLAGS-test-signgam-ullong-static.c = -std=c99
CFLAGS-test-signgam-ullong-init-static.c = -std=c99
CFLAGS-test-math-isinff.cc = -std=gnu++11
+CFLAGS-test-math-iszero.cc = -std=gnu++11
CFLAGS-test-iszero-excess-precision.c = -fexcess-precision=standard
CFLAGS-test-iseqsig-excess-precision.c = -fexcess-precision=standard