about summary refs log tree commit diff
path: root/Makerules
diff options
context:
space:
mode:
authorAndrew Senkevich <andrew.senkevich@intel.com>2016-12-08 17:25:59 +0300
committerAndrew Senkevich <andrew.senkevich@intel.com>2016-12-08 17:25:59 +0300
commitcbd8f9302c9a04bf4fe72a3a1a641faf07614552 (patch)
treec41fe53f2e9d34b376bfe46ca201d4e3d7955f0c /Makerules
parent23b5cae1af04f2d912910fdaf73cb482265798c1 (diff)
downloadglibc-cbd8f9302c9a04bf4fe72a3a1a641faf07614552.tar.gz
glibc-cbd8f9302c9a04bf4fe72a3a1a641faf07614552.tar.xz
glibc-cbd8f9302c9a04bf4fe72a3a1a641faf07614552.zip
Install libm.a as linker script (bug 20539).
Install libm.a as linker script to avoid static link fail w/o passing
additional -lmvec option while building with GCC >= 6.1.

    [BZ #20539]
    * math/Makefile (install-lib-ldscripts): Add libm.a.
    (install_subdir): Remove.
    (install-others): Add.
    ($(inst_libdir)/libm.a): Add rule for installation as
    linker script.
    * Makerules (install-lib.a): Filter out install-lib-ldscripts.
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makerules b/Makerules
index 7214b2b43c..61a0240439 100644
--- a/Makerules
+++ b/Makerules
@@ -1237,6 +1237,7 @@ $(addprefix $(inst_sbindir)/,$(install-sbin)): \
 endif
 ifdef install-lib
 install-lib.a := $(filter lib%.a,$(install-lib))
+install-lib.a := $(filter-out $(install-lib-ldscripts),$(install-lib.a))
 install-lib-non.a := $(filter-out lib%.a,$(install-lib))
 ifdef install-lib-non.a
 $(addprefix $(inst_libdir)/$(libprefix),$(install-lib-non.a)): \