How to debug a program wrapped in a libtool script?

后端 未结 2 1666
[愿得一人]
[愿得一人] 2021-02-07 15:27

I have a project involving

  • shared libraries ie: mylib.so
  • (test) program using these shared libraries ie: test_mylib
2条回答
  •  隐瞒了意图╮
    2021-02-07 16:08

    The solution recommended by the libtool docs is to use static linking during development, as I decribed at: Build libtool application with static linking to local components

    To do this, use the --disable-shared option to the ./configure script.

    For example:

    ./configure --enable-debug --disable-shared
    

    Now the generated executable is a directly executable binary rather than a libtool script.

    This has the added benefit of roughly halving the build time.

提交回复
热议问题