RFR: JDK-8075140: Solaris build of native libraries not consistently using EXTRA_CFLAGS and EXTRA_LDFLAGS

Erik Joelsson erik.joelsson at oracle.com
Mon Mar 16 08:29:48 UTC 2015


On 2015-03-14 20:34, Dean Long wrote:
>
> Related to that, I noticed that cross-compiler sysroot flags are being 
> included in
> jdk/make/gensrc/GensrcMisc.gmk when BUILD_CC and BUILD_LD are used,
> apparently because these flags get added to CFLAGS by default.  Is 
> there such
> thing as BUILD_CFLAGS that BUILD_CC should use?
>
Yes, this is a problem. We currently have no way of overriding those 
flags for specific compilations, and I think we should. A workaround is 
to empty the SYSROOT_*FLAGS variables before calling 
SetupNativeCompilation when using BUILD_CC.

/Erik



More information about the build-dev mailing list