RFR: 8255785: X11 libraries should not be required by configure for headless only

Magnus Ihse Bursie magnus.ihse.bursie at oracle.com
Tue Nov 3 07:51:10 UTC 2020


On 2020-11-03 05:27, Sergey Bylokhov wrote:
> On Tue, 3 Nov 2020 01:07:51 GMT, Phil Race <prr at openjdk.org> wrote:
>
>>> If we build a headless only JDK, configure will require X11 libraries and headers to be present. This used to be necessary, but thanks to massive cleanups in the AWT headless code, this is no longer the case.
>>>
>>> We should fix configure so that headless can be built without X11 libraries and headers.
>> Marked as reviewed by prr (Reviewer).
> Do we have a tier 1-build task or something that will check that we did not break building headless w/o x11?
There is no regular testing of headless-only. However, the only test 
needed for this fix was a single confirmation that the headless 
libraries indeed compile even without X_CFLAGS and X_LIBS. (This was 
apparent from the code since the make rules did not use X_CFLAGS and 
X_LIBS, but just to be 100% sure, I also tried building it.)

/Magnus



More information about the build-dev mailing list