building custom version fails with "glibc cannot be compiled without optimization" error

  • Greetings,

    I'm trying to build 9.2.5 with the following config:

    when it gets to glibc, I get this error:

    Code
    In file included from <command-line>:
    ./../include/libc-symbols.h:75:3: error: #error "glibc cannot be compiled without optimization"
     # error "glibc cannot be compiled without optimization"
       ^~~~~

    any ideas how to solve it?