Force linking a static library into a shared one with Libtool

前端 未结 2 1723
礼貌的吻别
礼貌的吻别 2021-02-20 02:15

I have a library (libfoo) that is compiled using libtool into two objects: libfoo.a and libfoo.so.

I have to create, using libtool

2条回答
  •  盖世英雄少女心
    2021-02-20 02:49

    You could probably use a convenience library. Convenience libraries are intermediate static libraries which are not installed. You could use the prefix noinst to build one.

    noinst_LTLIBRARIES = libfoo_impl.la
    
    lib_LTLIBRARIES = libfoo.la libbar.la
    libfoo_la_LIBADD = libfoo_impl.la
    libbar_la_LIBADD = libfoo_impl.la
    

提交回复
热议问题