diff options
author | Andreas Schwab <schwab@suse.de> | 2016-04-13 17:04:37 +0200 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2016-04-13 17:07:13 +0200 |
commit | b4bcb3aec62b97fda984e07aa8d89d2f76c96127 (patch) | |
tree | be042d8533f604857af098ba82f6cbdb52ec2bd3 /math | |
parent | 1c20cb209831ae381fce83ed244f97db910e0686 (diff) | |
download | glibc-b4bcb3aec62b97fda984e07aa8d89d2f76c96127.tar.gz glibc-b4bcb3aec62b97fda984e07aa8d89d2f76c96127.tar.xz glibc-b4bcb3aec62b97fda984e07aa8d89d2f76c96127.zip |
Register extra test objects
This makes sure that the extra test objects are compiled with the correct MODULE_NAME and dependencies are tracked.
Diffstat (limited to 'math')
-rw-r--r-- | math/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/math/Makefile b/math/Makefile index d440833f4d..57c3ec15aa 100644 --- a/math/Makefile +++ b/math/Makefile @@ -136,6 +136,9 @@ libm-tests = test-float test-double $(test-longdouble-$(long-double-fcts)) \ libm-tests.o = $(addsuffix .o,$(libm-tests)) tests += $(libm-tests) +libm-vec-test-wrappers = $(addsuffix -wrappers, $(libm-vec-tests)) +test-extras += $(libm-vec-test-wrappers) +extra-test-objs += $(addsuffix .o, $(libm-vec-test-wrappers)) libm-tests-generated = libm-test-ulps.h libm-have-vector-test.h libm-test.c generated += $(libm-tests-generated) libm-test.stmp @@ -300,10 +303,11 @@ $(objpfx)libieee.a: $(objpfx)ieee-math.o $(patsubst %/,cd % &&,$(objpfx)) \ $(LN_S) $(<F) $(@F) -$(addprefix $(objpfx),$(filter-out $(tests-static) $(libm-vec-tests),$(tests))): $(libm) +$(addprefix $(objpfx),\ + $(filter-out $(tests-static) $(libm-vec-tests),$(tests))): $(libm) $(addprefix $(objpfx),$(tests-static)): $(objpfx)libm.a -$(addprefix $(objpfx), $(libm-vec-tests)): $(objpfx)%: $(objpfx)%-wrappers.o $(libm) \ - $(libmvec) +$(addprefix $(objpfx), $(libm-vec-tests)): $(objpfx)%: $(objpfx)%-wrappers.o \ + $(libm) $(libmvec) gmp-objs = $(patsubst %,$(common-objpfx)stdlib/%.o,\ add_n sub_n cmp addmul_1 mul_1 mul_n divmod_1 \ |