about summary refs log tree commit diff
path: root/setjmp/Makefile
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-05-14 19:49:09 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-05-14 19:49:09 +0000
commit2bcb36b265ea2677198c22d005873b9b9600137e (patch)
tree9c2976bb1bbd8928e2ce60215a000c3215e197f0 /setjmp/Makefile
parentacbd839a0745d969f9dcff8c92e16866d922725e (diff)
downloadglibc-2bcb36b265ea2677198c22d005873b9b9600137e.tar.gz
glibc-2bcb36b265ea2677198c22d005873b9b9600137e.tar.xz
glibc-2bcb36b265ea2677198c22d005873b9b9600137e.zip
Add test for setjmp / longjmp and floating-point state.
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)