This provides some relevant background when packaging pre-built binaries (shared-packages, etc):
Does that help somehow?