Re: [PATCH] gcc: configure: Fix the optimization flags cleanup

2024-12-01 Thread Jeff Law
On 2/2/24 9:02 AM, Slava Barinov wrote: Currently sed command in flag cleanup removes all the -O[0-9] flags, ignoring the context. This leads to issues when the optimization flags is passed to linker: CFLAGS="-Os -Wl,-O1 -Wl,--hash-style=gnu" is converted into CFLAGS="-Os -Wl,-Wl,--hash-style

[PATCH] gcc: configure: Fix the optimization flags cleanup

2024-02-02 Thread Slava Barinov
Currently sed command in flag cleanup removes all the -O[0-9] flags, ignoring the context. This leads to issues when the optimization flags is passed to linker: CFLAGS="-Os -Wl,-O1 -Wl,--hash-style=gnu" is converted into CFLAGS="-Os -Wl,-Wl,--hash-style=gnu" Which leads to configure failure with