[build] add LD flags to print_config