[PATCH] malloc: Do not compile mcheck-init.o as libc module

Florian Weimer fweimer@redhat.com
Thu Aug 31 09:43:00 GMT 2017


Otherwise, this will lead to a link failure because the reference
to mcheck is hidden.

2017-08-31  Florian Weimer  <fweimer@redhat.com>

	* malloc/Makefile (others-extras): Set to mcheck-init.o.

diff --git a/malloc/Makefile b/malloc/Makefile
index 50b487eeb5..52bbce63c0 100644
--- a/malloc/Makefile
+++ b/malloc/Makefile
@@ -99,6 +99,7 @@ LDFLAGS-tst-mallocstate = -rdynamic
 
 # These should be removed by `make clean'.
 extra-objs = mcheck-init.o libmcheck.a
+others-extras = mcheck-init.o
 
 # Include the cleanup handler.
 aux := set-freeres thread-freeres



More information about the Libc-alpha mailing list