Hi folks: I have successfully wrapped up a C++ program in Python. Now I want to give my libboost_python.so and server.so files to my friend, so that he can use it too. However server.so makes use of libstdc++ and ssl library files, which I have to link statically to the server.so in order to be able to give server.so to someone. However Bjam is not linking libstdc++.a or libssl.a to server.so statically. I will really appreciate if someone could give me any direction about how to link these libraries statically to server.so . Thank you very much. Maulik P.S. My Jamfile looks like this ----------------------------------------------------------------------- project-root ; import python ; extension server : server.cpp <template>@boost/libs/python/build/extension : <include>. <include>../dqp <include>/export/apps/dq/dqweb/include <library-path>/home/o066144/work_in_progress/api/SunOS-5.8-g++ <library-path>/export/apps/dq/dqweb/lib <library-path>/usr/local/lib <find-library>ssl <find-library>crypto <find-library>dl <find-library>socket <find-library>nsl <find-library>gcc <find-library>stdc++ ; ---------------------------------------------------------------------------
desai3@cooper.edu wrote:
Hi folks:
I have successfully wrapped up a C++ program in Python. Now I want to give my libboost_python.so and server.so files to my friend, so that he can use it too.
However server.so makes use of libstdc++ and ssl library files, which I have to link statically to the server.so in order to be able to give server.so to someone. However Bjam is not linking libstdc++.a or libssl.a to server.so statically.
You're using Boost.Build V1, on which I cannot give clear directions. In Boost.Build V2: - libssl.a should be easy, just use <find-static-library>ssl You will need either SVN HEAD of Boost.Build or the Milestone 12 release - For libstdc++.a you might try the same trick. This might also need <linkflags>-static-libgcc, but I don't remember for sure. - Volodya
desai3@cooper.edu wrote:
Hi folks:
I have successfully wrapped up a C++ program in Python. Now I want to give my libboost_python.so and server.so files to my friend, so that he can use it too.
However server.so makes use of libstdc++ and ssl library files, which I have to link statically to the server.so in order to be able to give server.so to someone. However Bjam is not linking libstdc++.a or libssl.a to server.so statically.
You're using Boost.Build V1, on which I cannot give clear directions. In Boost.Build V2:
- libssl.a should be easy, just use <find-static-library>ssl You will need either SVN HEAD of Boost.Build or the Milestone 12 release
- For libstdc++.a you might try the same trick. This might also need <linkflags>-static-libgcc, but I don't remember for sure.
- Volodya
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Thanks. Maulik
participants (2)
-
desai3@cooper.edu
-
Vladimir Prus