optimize lin_static.d