How to force symbols from a static library to be included in a shared library build?

前端 未结 3 1431
隐瞒了意图╮
隐瞒了意图╮ 2020-12-08 05:00

I\'m trying to build a shared object library that will be opened by a program using dlopen(). This library will use functionality provided by a separate library that is stat

3条回答
  •  时光说笑
    2020-12-08 06:03

    Another hack is to take the address of the function somewhere during initialization of the library. This will make sure you actually use the symbol.

提交回复
热议问题