Issue 16721: configure incorrectly adds -OPT:Olimit=0 for clang (original) (raw)
Similar to http://bugs.python.org/issue1162001
But some differences, issue exposed only when first -OPT:Olimit=0 followed by correct -On option. clang simple do not check correctness of first occurences of -O:
$ clang -OPT:Olimit=0 test.c; echo $? error: invalid integral value 'PT:Olimit=0' in '-OPT:Olimit=0' error: invalid integral value 'PT:Olimit=0' in '-OPT:Olimit=0' 1
$ clang -OPT:Olimit=0 -O2 test.c; echo $?
0
This leads to normal compilation of python itself, but some dependant software built by gcc fails (see http://www.freebsd.org/cgi/query-pr.cgi?pr=174525 )