I see. I'll change to follow the way in x264.
e.g. compile with static and shared.