cocos2dx3.0 in ubuntu13.04 64bit can't to build with glfw3 static libirary

I update the lastest code, the sdl2 is be replaced by glfw3. so I download the glfw3,build and install. but glfw3 default compiled static libirary. than to build cocos2dx will err this:
*/usr/bin/ld: /usr/local/lib/libglfw3.a: relocation R_X86_64_32S against `.rodata’ can not be used when making a shared object; re
compile with -fPIC
/usr/local/lib/libglfw3.a: error adding symbols: 错误的值
collect2: error: ld returned 1 exit status
make: * 错误 1
*
the solution is change the glfw3’s CMakeLists.txt, turn on the shared libirary.

if you can’t download the glfw3 by youself,then you only need to excute tools/travis-scripts/install_glfw.sh .

if you got this err:
_ error while loading shared libraries: libglfw.so.3: cannot open shared object file: No such file or directory_
and you found /usr/local/lib have libglfw.so.3 . you can delete all glfw libirary and run install_glfw.sh

For the record, I solved this on my Fedora 64bits by compiling glfw with:

cmake -DBUILD_SHARED_LIBS=ON -G "Unix Makefiles"
make
sudo make install