Use CFLAGS to build self-tests