10.02.2022, 14:52, "Philippe Mathieu-Daudé" <[email protected]>:

Hi Konstantin,

On 10/2/22 12:44, Konstantin Khlebnikov wrote:

 Flags passed to configure must be at the end to override defaults.
 
 Signed-off-by: Konstantin Khlebnikov <[email protected]>
 ---
   meson.build | 12 ++++++------
   1 file changed, 6 insertions(+), 6 deletions(-)
 
 diff --git a/meson.build b/meson.build
 index 5f43355071..d94f3ee3e3 100644
 --- a/meson.build
 +++ b/meson.build
 @@ -3293,13 +3293,13 @@ if targetos == 'windows'
       summary_info += {'Windows SDK': config_host['WIN_SDK']}
     endif
   endif
 -summary_info += {'CFLAGS': ' '.join(get_option('c_args')
 - + ['-O' + get_option('optimization')]
 - + (get_option('debug') ? ['-g'] : []))}
 +summary_info += {'CFLAGS': ' '.join(['-O' + get_option('optimization')]
 + + (get_option('debug') ? ['-g'] : [])
 + + get_option('c_args'))}
   if link_language == 'cpp'
 - summary_info += {'CXXFLAGS': ' '.join(get_option('cpp_args')
 - + ['-O' + get_option('optimization')]
 - + (get_option('debug') ? ['-g'] : []))}
 + summary_info += {'CXXFLAGS': ' '.join(['-O' + get_option('optimization')]
 + + (get_option('debug') ? ['-g'] : [])
 + + get_option('cpp_args'))}


These are just informative... What is your problem? AFAIU This patch
doesn't have any logical impact on the build system.

For example before patch ./configure --extra-cflags="-O0" had no effect.
It's easy to find more cases because default "-O2" at the end has big impact.
 

Reply via email to