update ldflags and cflags