On Fri, 5 Dec 2025 00:04:18 GMT, Sergey Bylokhov <[email protected]> wrote:

> > We do not support changing optimization levels through configure or make 
> > arguments. You need to edit makefiles for each individual library.
> 
> Are there any blockers to setting a global default that would override the 
> optimization level for all libraries(if set)? For example, making everything 
> build with “size optimized” flags by default. This could be useful when 
> producing different bundles optimized for different use cases, while still 
> using the same source code.

For libjvm we have the 'jvm feature'  `opt-size`  (probably you know about it?) 
;  I think we should have something similar for the other native libs too.  But 
afaik it is not (yet) supported with an easy configure flag.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/23493#issuecomment-3615674228

Reply via email to