Linking Statically with glibc and libstdc++

后端 未结 4 2150
遥遥无期
遥遥无期 2020-12-07 19:41

I\'m writing a cross-platform application which is not GNU GPL compatible. The major problem I\'m currently facing is that the application is linked dynamically with glibc a

4条回答
  •  臣服心动
    2020-12-07 20:01

    glibc is under the LGPL. Under section 6. of LGPL 2.1, you can distribute your program linked to the library provided you comply with one of five options. The first is to provide the source code of the library, along with the object code (source is optional, not required) of your own program, so it can be relinked with the library. You can alternatively provide a written offer of the same. Your own code does not have to be under the LGPL, and you don't have to release source.

    libstdc++ is under the GPL, but with a major exception. You can basically just distribute under the license of your choice without providing source for either your own code or libstdc++. The only condition is that you compile normally, without e.g. proprietary modifications or plugins to GCC.

    IANAL, and you should consider consulting one if you need real legal advice.

提交回复
热议问题