]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
benchtests: Do not compile benchmark objects as libc modules [BZ #21864]
authorFlorian Weimer <fweimer@redhat.com>
Mon, 21 Aug 2017 17:28:54 +0000 (19:28 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 21 Aug 2017 17:28:54 +0000 (19:28 +0200)
Otherwise, this will lead to link failures due to hidden symbol
references.

ChangeLog
benchtests/Makefile

index bfc20d68817a8ebdb95b5ed4b34fc85368f6808e..768f235a084b136f1c21bb31aec5a38fdf9bef8b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2017-08-21  Florian Weimer  <fweimer@redhat.com>
+
+       [BZ #21864]
+       Do not compile benchmark helper objects with -DMODULE_NAME=libc.
+       * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
+       Move before inclusion of ../Rules.
+
 2017-08-21  Florian Weimer  <fweimer@redhat.com>
 
        [BZ #21972]
index 37788e8c3185e17f78c8cde624f57245ba37acd4..a0c34703984e548ddd58398062c9cac7461daeff 100644 (file)
@@ -93,6 +93,11 @@ $(objpfx)bench-malloc-thread: $(shared-thread-library)
 # affect their performance.
 .NOTPARALLEL:
 
+bench-extra-objs = json-lib.o
+
+extra-objs += $(bench-extra-objs)
+others-extras = $(bench-extra-objs)
+
 include ../Rules
 
 binaries-bench := $(addprefix $(objpfx)bench-,$(bench))
@@ -125,10 +130,6 @@ cpp-srcs-left := $(binaries-benchset:=.c) $(binaries-bench:=.c) \
 lib := nonlib
 include $(patsubst %,$(..)libof-iterator.mk,$(cpp-srcs-left))
 
-bench-extra-objs = json-lib.o
-
-extra-objs += $(bench-extra-objs)
-
 bench-deps := bench-skeleton.c bench-timing.h Makefile
 
 run-bench = $(test-wrapper-env) \