This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] malloc: Do not compile mcheck-init.o as libc module
- From: fweimer at redhat dot com (Florian Weimer)
- To: libc-alpha at sourceware dot org
- Date: Thu, 31 Aug 2017 11:42:59 +0200
- Subject: [PATCH] malloc: Do not compile mcheck-init.o as libc module
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx06.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx06.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=fweimer at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com C7CCE267C8
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