change the link option in run command according to server