Question about BUILD_HEADLESS and HEADLESS

David Holmes david.holmes at oracle.com
Wed Feb 15 04:44:24 UTC 2012


On 14/02/2012 11:47 PM, Fredrik Öhrström wrote:
> Is the use of HEADLESS in gcc.make (linux and bsd) an archaeological
> remnant and should be removed? (No source in the hotspot repo looks a
> the HEADLESS define.)

I agree this seems superfluous. There's no use of the HEADLESS define in 
the Hotspot sources.

> Is there any reason to not build a headless version of awt? (ie modify
> BUILD_HEADLESS to not be defined.)
> It seeems like headless is not currently built on bsd/macosx/windows,
> but it is built on solaris and linux?

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.

David
-----
>
> //Fredrik



More information about the build-dev mailing list