Use proper functions instead of setting cflags.