There is a compile_link program which will assist with this. Do: perldoc VENDROOT/bin/compile_link
compile_link
for its documentation.