From 784761bee3828e4e21cbe15340c7a99e3fd1788b Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 14 Sep 2012 20:18:49 +0000 Subject: Make printf respect the rounding mode for decimal output (bug 5044). --- stdio-common/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'stdio-common/Makefile') diff --git a/stdio-common/Makefile b/stdio-common/Makefile index 5d7ab532f4..9811572431 100644 --- a/stdio-common/Makefile +++ b/stdio-common/Makefile @@ -57,7 +57,7 @@ tests := tstscanf test_rdwr test-popen tstgetln test-fseek \ bug19 bug19a tst-popen2 scanf13 scanf14 scanf15 bug20 bug21 bug22 \ scanf16 scanf17 tst-setvbuf1 tst-grouping bug23 bug24 \ bug-vfprintf-nargs tst-long-dbl-fphex tst-fphex-wide tst-sprintf3 \ - bug25 + bug25 tst-printf-round test-srcs = tst-unbputc tst-printf @@ -128,3 +128,10 @@ CPPFLAGS += $(libio-mtsafe) $(objpfx)tst-setvbuf1.out: tst-setvbuf1.expect $(objpfx)tst-setvbuf1 $(built-program-cmd) > $@ 2>&1 cmp tst-setvbuf1.expect $@ + +ifeq ($(build-shared),yes) +link-libm = $(common-objpfx)math/libm.so +else +link-libm = $(common-objpfx)math/libm.a +endif +$(objpfx)tst-printf-round: $(link-libm) -- cgit v1.2.1