math/test-sinl-pseudo: Use stack protector only if available

This fixes commit 9333498794 ("Avoid ldbl-96 stack
corruption from range reduction of pseudo-zero (bug 25487).").
This commit is contained in:
Florian Weimer 2020-02-13 17:01:15 +01:00 committed by Fangrui Song
parent 8c5a6bf813
commit f1d716a048

View 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