preparing build process for LD