This is the mail archive of the
mailing list for the glibc project.
Re: [PATCH] Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h
- From: Florian Weimer <fweimer at redhat dot com>
- To: libc-alpha at sourceware dot org
- Date: Sat, 11 Jun 2016 11:46:12 +0200
- 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> <20160609193144 dot GG18744 at vapier dot lan>
On 06/09/2016 09:31 PM, Mike Frysinger wrote:
On 08 Jun 2016 17:08, 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.
i've wondered why we use -M in the first place. why not change to -MM ?
In this case, it helped to catch an invalid test. :) Including
/usr/include/stdlib.h cannot be the right thing to do.
Using implicit rules for the install target is rather dubious,
particularly if these rules are always active (i.e. not just when âmake
installâ is running). This is quite risky, and the massive count of
implicit rules we have causes real pain during day-to-day development.
And see my reply to Roland, /usr/include should never be on the include