about summary refs log tree commit diff
path: root/setjmp/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'setjmp/Makefile')
-rw-r--r--setjmp/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/setjmp/Makefile b/setjmp/Makefile
index 2c2ead25e9..6124333546 100644
--- a/setjmp/Makefile
+++ b/setjmp/Makefile
@@ -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)