add link function for compiler