renzhong opened a new pull request, #1799: URL: https://github.com/apache/incubator-brpc/pull/1799
当 leveldb 依赖 snappy 时,编译 brpc 也需要添加 snappy 相关的 include_path、lib_path 等。 理想状态下应该判断 leveldb 使用了 snappy,才添加 snappy 相关依赖,当实际情况不是很好判断,例如系统中只找到了 libleveldb.a ,没办法通过查找符号的方式判断 libleveldb.so 中是否有 snappy 相关的符号。 因此使用了一种更简单的方式,可以通过 WITH_SNAPPY 来添加相关的依赖。当用户使用默认编译行为编译 brpc,发现 snappy 相关的错误,可以通过 WITH_SNAPPY 快速解决问题。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
