add a function to set cflags from compile command