If SSL is available, 'thrift' binary links against it
-----------------------------------------------------

                 Key: THRIFT-1299
                 URL: https://issues.apache.org/jira/browse/THRIFT-1299
             Project: Thrift
          Issue Type: Bug
          Components: Build Process, C++ - Compiler, C++ - Library
    Affects Versions: 0.7
            Reporter: Diwaker Gupta
            Priority: Minor


Inspection of compiler/cpp/Makefile and lib/cpp/Makefile reveals that for 
building both the thrift compiler as well as the C++ libraries, the same set of 
libraries (in the variable LIBS) are used. When OpenSSL is available, this has 
the unintended consequence that the thrift compiler links libssl (and 
potentially libcrypto), even though it doesn't need to. In theory there is no 
harm in linking against additional shared libraries but it can be an issue in 
practice. Specifically, if OpenSSL etc are installed in a custom location (such 
as when building a custom toolchain), the thrift binary will fail to run unless 
LD_LIBRARY_PATH is set every time thrift needs to run.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to