OPENJDK=true build flag - what does it do?

Volker Simonis volker.simonis at gmail.com
Thu Jun 13 05:49:53 PDT 2013


Hi Tiago,

OPENJDK is used to distinguish an Oracle-internal build of the OpenJDK
sources (enriched/replaced with their proprietary stuff) from a vanilla
OpenJDK build. It basically controls different source alternatives for the
different builds (e.g. OpenJDK uses the "freetype" font renderer while the
Oracle JDK uses "t2k", there are differences with the cryptographic files,
difference with the fonts - Oracle JDK has own fonts OpenJDK does not have
them, etc).

As you correctly noticed, OPENJDK should be detected automatically if no
closed source directories exist in the source tree and we don't define it
any more for the jdk8 build. Actually I don't remember exactly why we set
it for the jdk7 build - maybe the self-detection didn't work correctly when
we started? It may be that you can omit it for the jdk7 build now as well.

Regards,
Volker



On Wed, Jun 12, 2013 at 11:53 PM, Tiago Stürmer Daitx <
tdaitx at linux.vnet.ibm.com> wrote:

> Folks,
>
> Either my Google-fu is in bad shape today or searching for a build flag
> named OPENJDK that might be used for the OpenJDK project is extra hard.
>
> grep is not helping that much as well, since I got ~236 results for it
> from the codebase. Looking at the source of some of highlighted files
> kinds of indicates that some other code pieces are used when it is not
> set - eg "Set OPENJDK based on CLOSED_SRC_INCLUDED" -, but that does not
> help getting the whole picture.
>
> Q: does anyone know what is it for and why the PowerPC/AIX Port requires
> it? I will gladly accept any RTFM that comes with a link to any
> documentation. Let me know if there's a better place to ask this than
> here. =)
>
> Regards,
> Tiago
>
>
> --
> Tiago Stürmer Daitx
> tdaitx at linux.vnet.ibm.com
> IBM - Linux Technology Center
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/ppc-aix-port-dev/attachments/20130613/5093a6eb/attachment.html 


More information about the ppc-aix-port-dev mailing list