[Bug nptl/20314] make[4]: *** [/usr/include/stdlib.h] Error 1
cvs-commit at gcc dot gnu.org
sourceware-bugzilla@sourceware.org
Tue Jul 5 14:05:00 GMT 2016
https://sourceware.org/bugzilla/show_bug.cgi?id=20314
--- Comment #7 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, hjl/pr20314 has been created
at 9be4ecc5bbecb2fdbeee0c0d7af30e94517fd5d6 (commit)
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9be4ecc5bbecb2fdbeee0c0d7af30e94517fd5d6
commit 9be4ecc5bbecb2fdbeee0c0d7af30e94517fd5d6
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Jun 30 06:56:19 2016 -0700
Make copies of cstdlib/cmath and use them
If C++ headers <cstdlib> or <cmath> are used, GCC 6 will include
/usr/include/stdlib.h or /usr/include/math.h from "#include_next"
(instead of stdlib/stdlib.h or math/math.h in the glibc source
directory), and this turns up as a make dependency. An implicit
rule will kick in and make will try to install stdlib/stdlib.h or
math/math.h as /usr/include/stdlib.h or /usr/include/math.h because
the target is out of date. We make a copy of <cstdlib> and <cmath>
in the glibc build directory so that stdlib/stdlib.h and math/math.h
will be used instead of /usr/include/stdlib.h and /usr/include/math.h.
[BZ #20314]
* Makeconfig (CXXFLAGS): Prepend -I$(common-objpfx).
* Makerules (before-compile): Add $(common-objpfx)cstdlib and
$(common-objpfx)cmath.
($(common-objpfx)cstdlib): New target.
($(common-objpfx)cmath): Likewise.
-----------------------------------------------------------------------
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list