aboutsummaryrefslogtreecommitdiff
path: root/math/Makefile
diff options
context:
space:
mode:
authorAndrew Senkevich <andrew.senkevich@intel.com>2015-04-28 13:48:23 +0300
committerAndrew Senkevich <andrew.n.senkevich@gmail.com>2015-04-28 13:48:23 +0300
commitec3a4b85a8568795e30307e1c2f892cdb5ffafe6 (patch)
tree915fbb831dc54785db663ede155d43ee7438d9a6 /math/Makefile
parenta50ac6ec0a8e23e1b062e92545606951747c8b8c (diff)
downloadglibc-ec3a4b85a8568795e30307e1c2f892cdb5ffafe6.zip
glibc-ec3a4b85a8568795e30307e1c2f892cdb5ffafe6.tar.gz
glibc-ec3a4b85a8568795e30307e1c2f892cdb5ffafe6.tar.bz2
This is infrastructure update for configure, build and install of vectorandros/libmvec
math library. Installation of libm.so as linker script only in case of libmvec.so build. 2015-04-28 Andrew Senkevich <andrew.n.senkevich@gmail.com> * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder. (libmvec): New variable. * configure.ac: Added option for mathvec build. * configure: Regenerated. * mathvec/Depend: New file. * mathvec/Makefile: New file. * shlib-versions: Added libmvec. * math/Makefile: Added rule for libm.so installation.
Diffstat (limited to 'math/Makefile')
-rw-r--r--math/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile
index 4f66162..9a3cf32 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -86,6 +86,22 @@ generated += $(foreach s,.c .S l.c l.S f.c f.S,$(calls:s_%=m_%$s))
routines = $(calls) $(calls:=f) $(long-c-$(long-double-fcts))
long-c-yes = $(calls:=l)
+ifeq ($(build-mathvec),yes)
+# We need to install libm.so as linker script
+# for more comfortable use of vector math library.
+install-lib-ldscripts := libm.so
+install_subdir: $(inst_libdir)/libm.so
+$(inst_libdir)/libm.so: $(common-objpfx)format.lds \
+ $(libm) \
+ $(libmvec) \
+ $(+force)
+ (echo '/* GNU ld script'; echo '*/';\
+ cat $<; \
+ echo 'GROUP ( $(slibdir)/libm.so$(libm.so-version) ' \
+ 'AS_NEEDED ( $(slibdir)/libmvec.so$(libmvec.so-version) ) )' \
+ ) > $@
+endif
+
# Rules for the test suite.
tests = test-matherr test-fenv atest-exp atest-sincos atest-exp2 basic-test \
test-misc test-fpucw test-fpucw-ieee tst-definitions test-tgmath \