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

前端 未结 3 1452
隐瞒了意图╮
隐瞒了意图╮ 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 05:44

    Recently I was searching solution for the same. I found using

    --undefined=symbol
    

    or

    -u symbol
    

    solves the problem.

提交回复
热议问题