Question about BUILD_HEADLESS and HEADLESS

Fredrik Öhrström fredrik.ohrstrom at oracle.com
Wed Feb 15 11:48:01 UTC 2012


----- david.holmes at oracle.com skrev:
> I'm not sure what you are asking. BUILD_HEADLESS is a JDK build flag.
> As you say it is set true in the linux and solaris Def-<os>.gmk files,
> and AFAICS it is only used in one place in make/sun/headless/Makefile
> 
> Note: BUILD_HEADLESS_ONLY is an unrelated option that was added to 
> support special SE Embedded builds on platforms with no X11 includes
> or libraries available at all.

Ok, the question concerns the api for configuring the build.

My personal opinion now, is that the build should always compile support for headless execution of the jdk. 

But you can disable the compilation of head support with 
./configure --disable-head 

This seems to be consistent with the actual usage of the old makefile variables according to the answers I got to this question.

//Fredrik



More information about the build-dev mailing list