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

Florian Weimer fweimer@redhat.com
Mon Oct 16 18:49:00 GMT 2017


On 08/31/2017 11:42 AM, Florian Weimer wrote:
> 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
> 

I am going to check this in.

Thanks,
Florian



More information about the Libc-alpha mailing list