Convert a Static Library to a Shared Library?

前端 未结 5 1239
情歌与酒
情歌与酒 2020-11-28 03:02

I have a third-party library which consists mainly of a large number of static (.a) library files. I can compile this into a single .a library fil

5条回答
  •  忘掉有多难
    2020-11-28 03:15

    Does this (with appropriate -L's of course)

    gcc -shared -o megalib.so foo.o bar.o -la_static_lib -lb_static_lib
    

    Not do it?

提交回复
热议问题