开发者

Is it possible to link to the source code of git when I just remove the main function?

I want to write a GUI front-end for git in C. I know I can just pack a compiled binary of git within my application bundle (Mac OS X), but is it also possible to compile git as a dynamic library with just the main function removed (i.e. not compile git.c), and link to it?


Also, the license reads:

b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.

Does this mean I must release my开发者_JAVA百科 app as GPL too, or only when I statically link it?


You are probably looking for libgit2, which is also released under a more permissive license.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜