The problem is I can get X264 compiled and it works well if I don't want to compile VLC.
When I compile VLC or FFMPEG with X264, it failed. I think YASM men can add -fPIC support on their compiler and maybe somebody know how to change VLC's makefile to compile static lib rather than shared object.