From f9378ac3773ffe998a2b3406568778ee9f77f759 Mon Sep 17 00:00:00 2001 From: Dylan Alex Simon Date: Tue, 15 Mar 2016 13:20:01 -0400 Subject: math: don't clobber old libm.so on install [BZ #19822] When installing glibc (w/mathvec enabled) in-place on a system with a glibc w/out mathvec enabled, the install will clobber the existing libm.so (e.g., /lib64/libm-2.21.so) with a linker script. This is because libm.so is a symlink to libm.so.6 which is a symlink to the final libm-2.21.so file. When the makefile writes the linker script directly to libm.so, it gets clobbered. The simple patch below to math/Makefile fixes this. It is based on the nptl Makefile, which does exactly the same thing in a safer way. --- ChangeLog | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 6bd5a11769..17c9dc054c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2016-03-21 Dylan Alex Simon + + [BZ #19822] + * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and + move it to the final $@ location. + 2016-03-20 Adhemerval Zanella * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory -- cgit 1.4.1