RFR (2xS): 8181318: Allow C++ library headers on Solaris Studio

Erik Joelsson erik.joelsson at oracle.com
Wed May 31 13:57:14 UTC 2017


(adding hotspot-dev)

Looks good from a build perspective.

/Erik


On 2017-05-31 15:45, Erik Österlund wrote:
> Hi,
>
> It would be desirable to be able to use harmless C++ standard library 
> headers like <limits> in the code as long as it does not add any 
> link-time dependencies to the standard library.
> This is possible on all supported platforms except the ones using the 
> solaris studio compiler where we enforce -library=%none in both CFLAGS 
> and LDFLAGS.
> I propose to remove the restriction from CFLAGS but keep it on LDFLAGS.
>
> I have consulted with the studio folks, and they think this is 
> absolutely fine and thought that the choice of -library=stlport4 
> should be fine for our CFLAGS and is indeed what is already used in 
> the gtest launcher.
>
> Webrev for jdk10-hs top level repository:
> http://cr.openjdk.java.net/~eosterlund/8181318/webrev.00/
>
> Webrev for jdk10-hs hotspot repository:
> http://cr.openjdk.java.net/~eosterlund/8181318/webrev.01/
>
> Testing: JPRT.
>
> Will need a sponsor.
>
> Thanks,
> /Erik




More information about the build-dev mailing list