https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84484 --- Comment #9 from Andreas Schwab <schwab@linux-m68k.org> --- That does not work because CFLAGS gets reset after the test. Only PTHREAD_CFLAGS survives.