up: support static lib