merlimat commented on issue #1964: pulsar-client-cpp not able to build with static link URL: https://github.com/apache/incubator-pulsar/issues/1964#issuecomment-397355673 Hi @vli02. The problem is that to build a "fat" `libpulsar.so` that contains all dependencies, these dependencies need to be compiled with `-fPIC` . Unfortunately, that is not the case with most library that ship in Ubuntu/RHEL. For example, for Python binding we have a Docker image with all the dependencies compiled correctly. Same for building statically linked RPM package (there is a PR in progress at https://github.com/apache/incubator-pulsar/pull/1963). The Docker image, based on Centos 7, is already available as `apachepulsar/pulsar-build:centos-7`. You can use that image, that comes with required dependencies, to build a statically linked `libpulsar.so` that doesn't depend on any other library.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
