Patch: PR libgcj/28426: Fix install directory for libgcj headers in cross build.
David Daney
ddaney@avtrex.com
Tue Jul 18 22:19:00 GMT 2006
From the PR:
libgcj headers are installed in: GCC_PREFIX/include/c++/4.2.0
For a cross build g++ looks in GCC_PREFIX/${target}/include/c++/4.2.0
The result is that (by default) cni include files like gcj/cni.h cannot be
found by g++.
For a native build there is no problem.
The patch copies the logic from libstdc++-v3 into
config/gxx-include-dir.m4 and adds a comment to
libstdc++-v3/acinclude.m4 that points to the code that should be kept in
sync.
Grepping the sources it appears that the change to
config/gxx-include-dir.m4 only effects libjava/configure. So although
the fix is done in the config directory only libjava will be effected.
FWIW: I think this is a regression from 3.3.1, but I am not positive
because my 3.3.1 build is quite hacked up.
Testing on i686-pc-linux -> mipsel-linux cross (no-regressions) and
i686-pc-linux-gnu native (in progress), although the testsuite does not
really expose this type of install problem.
OK to commit?
libstdc++-v3:
2006-07-18 David Daney <ddaney@avtrex.com>
PR libgcj/28426
* acinclude.m4: Added a comment.
config:
2006-07-18 David Daney <ddaney@avtrex.com>
PR libgcj/28426
* gxx-include-dir.m4: Use target_alias in path for cross build.
libjava:
2006-07-18 David Daney <ddaney@avtrex.com>
PR libgcj/28426
* configure: Regenerated.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: crosscniinc.d
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060718/baa8187f/attachment.ksh>
More information about the Gcc-patches
mailing list