diff options
author | Andrew Senkevich <andrew.senkevich@intel.com> | 2016-12-13 17:40:08 +0300 |
---|---|---|
committer | Andrew Senkevich <andrew.senkevich@intel.com> | 2016-12-13 17:40:08 +0300 |
commit | ffb8455c439cda679d4be05b6ebcbaa375334af4 (patch) | |
tree | 8db924878d7ae06f6145a72e1ee7058db97876b2 /math/Makefile | |
parent | 5f4f13b47abd5eb984a83302a87b02fb4a94545d (diff) | |
download | glibc-ffb8455c439cda679d4be05b6ebcbaa375334af4.tar.gz glibc-ffb8455c439cda679d4be05b6ebcbaa375334af4.tar.xz glibc-ffb8455c439cda679d4be05b6ebcbaa375334af4.zip |
Better design of libm.a installation rule.
* math/Makefile ($(inst_libdir)/libm-$(version).a): New target. * ($(inst_libdir)/libm.a): Fix rule to create the target only.
Diffstat (limited to 'math/Makefile')
-rw-r--r-- | math/Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/math/Makefile b/math/Makefile index 49556f69c6..b5d498819c 100644 --- a/math/Makefile +++ b/math/Makefile @@ -143,15 +143,18 @@ $(inst_libdir)/libm.so: $(common-objpfx)format.lds \ ) > $@.new mv -f $@.new $@ +$(inst_libdir)/libm-$(version).a: $(objpfx)libm.a \ + $(+force) + $(do-install) + $(inst_libdir)/libm.a: $(common-objpfx)format.lds \ - $(libm) \ - $(libmvec) \ + $(inst_libdir)/libm-$(version).a \ + $(objpfx)../mathvec/libmvec.a \ $(+force) (echo '/* GNU ld script'; echo '*/';\ cat $<; \ - echo 'GROUP ( $(libdir)/libm-$(lib-version).a $(libdir)/libmvec.a )' \ + echo 'GROUP ( $(libdir)/libm-$(version).a $(libdir)/libmvec.a )' \ ) > $@.new - cp $(objpfx)libm.a $(inst_libdir)/libm-$(lib-version).a mv -f $@.new $@ endif |