]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - debug/Makefile
Avoid backtrace from __stack_chk_fail [BZ #12189]
[thirdparty/glibc.git] / debug / Makefile
index cd4975c35b70fe4c52fc6bbedb0f88179463af9c..c6d78727f045fa409e3ca543aaa1b45b4f231a6e 100644 (file)
@@ -139,12 +139,18 @@ LDFLAGS-tst-backtrace4 = -rdynamic
 LDFLAGS-tst-backtrace5 = -rdynamic
 LDFLAGS-tst-backtrace6 = -rdynamic
 
+CFLAGS-tst-ssp-1.c = -fstack-protector
+
 tests = backtrace-tst tst-longjmp_chk tst-chk1 tst-chk2 tst-chk3 \
        tst-lfschk1 tst-lfschk2 tst-lfschk3 test-strcpy_chk test-stpcpy_chk \
        tst-chk4 tst-chk5 tst-chk6 tst-lfschk4 tst-lfschk5 tst-lfschk6 \
        tst-longjmp_chk2 tst-backtrace2 tst-backtrace3 tst-backtrace4 \
        tst-backtrace5 tst-backtrace6
 
+ifeq ($(have-ssp),yes)
+tests += tst-ssp-1
+endif
+
 ifeq (,$(CXX))
 tests-unsupported = tst-chk4 tst-chk5 tst-chk6 \
                    tst-lfschk4 tst-lfschk5 tst-lfschk6