[RFC] add --with-build-for-cc option
Robert Schuster
thebohemian at gmx.net
Fri Jun 18 04:42:14 PDT 2010
Hi,
following examples for the autotools I added a --with-cc-for-build
option to IcedTea6's configure.ac, Makefile.am, acinclude.m4 that allows
specifying the compiler to use for helper programs that need to be
compiled with the build system's compiler (rather than the one for the
target). The patch also includes a change to the ARM assembler port's
makefile that makes it compile 'mkbc' with the build compiler. If used
the variable CROSS_COMPILATION to absolutely make sure that nothing
changes for non-cross builds. The change is only possible because the
mkbc tool does not depend on the sizes of data structures - genoffsets
is a different beast in that regard and I will come up with a different
solution for that later.
Btw: AFAIK the patch does not interfere with the soon to be removed zero
sources.
2009-06-18 Robert Schuster <robertschuster at fsfe.org>
* configure.ac: Added --with-cc-for-build option.
* acinclude: New macro AC_CHECK_WITH_CC_FOR_BUILD.
* Makefile.am: Provide CC_FOR_BUILD through icedtea-env.
* ports/hotspot/make/linux/makefiles/zeroshark.make: Use
CC_FOR_BUILD when cross-compiling.
Ok, for commit?
Regards
Robert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cc-for-build-option.patch
Type: text/x-patch
Size: 2768 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20100618/35f46442/cc-for-build-option.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20100618/35f46442/signature.asc
More information about the distro-pkg-dev
mailing list