i am making a .so file out of libsioclient.a, and /usr/bin/ld says relocation error, require me to recompile with -fPIC, so i use this command to cmake again:
cmake -DBOOST_ROOT=path_to_boost -DBOOST_VER=my_boost_version -DCMAKE_CXX_FLAGS=-fPIC ./
and in ./CMakeFiles/sioclient_tls.dir/flags.make:5 and ./CMakeFiles/sioclient_tls.dir/flags.make:5: -fPIC was added to CXX_FLAGS and my dynamic library was generated
however, this problem still exists in the libboost_*.a files, and i have to use my own boost libraries.
any idea to fix this?
ps. my platform is ubuntu 1404LTS, and using repo at this commit (Jun.15th)
i am making a .so file out of libsioclient.a, and /usr/bin/ld says relocation error, require me to recompile with -fPIC, so i use this command to cmake again:
and in ./CMakeFiles/sioclient_tls.dir/flags.make:5 and ./CMakeFiles/sioclient_tls.dir/flags.make:5: -fPIC was added to CXX_FLAGS and my dynamic library was generated
however, this problem still exists in the libboost_*.a files, and i have to use my own boost libraries.
any idea to fix this?
ps. my platform is ubuntu 1404LTS, and using repo at this commit (Jun.15th)