You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/01/31 06:42:27 UTC

[GitHub] merlimat opened a new pull request #3488: Build static lib with bundled dependencies

merlimat opened a new pull request #3488: Build static lib with bundled dependencies
URL: https://github.com/apache/pulsar/pull/3488
 
 
   ### Motivation
   
   Currently the `libpulsar.a` that is shipped in the Deb/RPM packages doesn't include all the required dependencies (unlike the `libpulsar.so`). 
   Also, in Deb package the archive is being stripped and that causes the object index to be dropped, rendering the archive unusable.
   
   ### Modifications
   
    * Do not strip `libpulsar.a`
    * Install a `libpular.a` that is the merged archive containing all the required dependencies
   
   ### Result
   
   On Linux it will be possible to compile a static binary with 
   ```
   g++ test.cpp -o test libpulsar.a -lrt -ldl -pthread
   ```

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services