]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - setjmp/Makefile
Add test for setjmp / longjmp and floating-point state.
[thirdparty/glibc.git] / setjmp / Makefile
index 2c2ead25e9093d355691b531c5beb7b43190ccb3..6124333546d2867b496cf3b47fad1bad1e50f251 100644 (file)
@@ -25,7 +25,14 @@ headers      := setjmp.h bits/setjmp.h bits/setjmp2.h
 routines       := setjmp sigjmp bsd-setjmp bsd-_setjmp \
                   longjmp __longjmp jmp-unwind
 
-tests          := tst-setjmp jmpbug bug269-setjmp
+tests          := tst-setjmp jmpbug bug269-setjmp tst-setjmp-fp
 
 
 include ../Rules
+
+ifeq ($(build-shared),yes)
+link-libm = $(common-objpfx)math/libm.so
+else
+link-libm = $(common-objpfx)math/libm.a
+endif
+$(objpfx)tst-setjmp-fp: $(link-libm)