This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h
- From: Carlos O'Donell <carlos at redhat dot com>
- To: Florian Weimer <fweimer at redhat dot com>, libc-alpha at sourceware dot org
- Date: Wed, 8 Jun 2016 16:03:27 -0400
- Subject: Re: [PATCH] Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h
- Authentication-results: sourceware.org; auth=none
- References: <20160608150824 dot C6B3A4012D197 at oldenburg dot str dot redhat dot com>
On 06/08/2016 11:08 AM, Florian Weimer wrote:
> Otherwise, /usr/include/stdlib.h turns up as a make dependency,
> and an implicit rule will kick and make will try to install
> stdlib/stdlib.h as /usr/include/stdlib.h because the target
> is out of date.
>
> 2016-06-08 Florian Weimer <fweimer@redhat.com>
>
> Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
> * stdlib/tst-quick_exit.cc: Include <stdlib.h> before <cstdlib>.
> * stdlib/tst-thread-quick_exit.cc: Likewise.
OK, with source code comment explaining why 'stdlib.h' is being included.
What's going to be our long-term solution to this problem?
--
Cheers,
Carlos.