Building JDK8 b106 with sysroot and isystem

Magnus Ihse Bursie magnus.ihse.bursie at oracle.com
Wed Sep 18 09:55:16 UTC 2013


On 2013-09-17 20:01, Jungwoo Ha wrote:
> Can you tell me what is the expected layout of devkit?
> I'll put things together and will try.

--with-devkit=/foo is a shorthand for
--with-tools-dir=/foo/bin --with-sys-root=/foo/<host_alias>/libc
or
--with-tools-dir=/foo/bin --with-sys-root=/foo/<host>/sys-root
depending on wether /foo/<host_alias>/libc is an existing directory or not.

<host> and <host_alias> are the name of the target platform as defined 
by configure, e.g. "x86_64-pc-linux-gnu" (host) or "x86-linux-gnu" 
(host_alias).

I believe this is a common way to structure cross-compilation tools, 
which was the primary reason to include this shortcut.

If this layout does not match your need, it is probably easier to just 
use --with-devit and --with-tools-dir separately. On the other hand, if 
you think that your layout is common, we welcome patches that adds a 
check for it in --with-devkit. After all, the idea with --with-devkit 
was to make cross-compilation easier.

/Magnus



More information about the build-dev mailing list