add pre-link.sh to sample