diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2016-06-30 06:56:19 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2016-06-30 09:45:25 -0700 |
commit | 9be4ecc5bbecb2fdbeee0c0d7af30e94517fd5d6 (patch) | |
tree | 5929eef83d296e0fc9e27c8ed41de8fab6af3cb4 /localedata/tst-numeric.data | |
parent | 9765ffa71030efd8bb4f2ea4ed6e020fcb4bb714 (diff) | |
download | glibc-hjl/pr20314.tar.gz |
Make copies of cstdlib/cmath and use themhjl/pr20314
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.
Diffstat (limited to 'localedata/tst-numeric.data')
0 files changed, 0 insertions, 0 deletions