math/test-sinl-pseudo: Use stack protector only if available
authorFlorian Weimer <fweimer@redhat.com>
Thu, 13 Feb 2020 16:01:15 +0000 (17:01 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 13 Feb 2020 16:01:15 +0000 (17:01 +0100)
This fixes commit 9333498794cde1d5cca518bad ("Avoid ldbl-96 stack
corruption from range reduction of pseudo-zero (bug 25487).").

sysdeps/ieee754/ldbl-96/Makefile

index 318628a..6030adf 100644 (file)
@@ -18,5 +18,7 @@
 
 ifeq ($(subdir),math)
 tests += test-canonical-ldbl-96 test-totalorderl-ldbl-96 test-sinl-pseudo
+ifeq ($(have-ssp),yes)
 CFLAGS-test-sinl-pseudo.c += -fstack-protector-all
 endif
+endif # $(subdir) == math