link sm as a single translation unit