作者jserv (松鼠)
看板LinuxDev
标题Re: [讨论] BSD 授权
时间Tue Jul 1 21:03:03 2008
※ 引述《TroyLee (TroyLee)》之铭言:
: 3. 如果我有使用到 G++ STL 的也有必要特别加入 GPL 的宣告吗?
以 gcc 4.3 来说,header /usr/include/c++/4.3.1/iostream 就是 GNU GPLv2
授权 (注意,尽管 gcc 官方声明 4.3 以後的 gcc release 以 GNU GPLv3,但仍
有部份仅以 GPLv2 授权,例如 g++/STL),不过,加了例外条款,引述如下:
// As a special exception, you may use this file as part of a free software
// library without restriction. Specifically, if other files instantiate
// templates or use macros or inline functions from this file, or you compile
// this file and link it with other files to produce an executable, this
// file does not by itself cause the resulting executable to be covered by
// the GNU General Public License. This exception does not however
// invalidate any other reasons why the executable file might be covered by
// the GNU General Public License.
所以,这澄清了您的疑虑,基本上只用 g++/STL 开发应用程式,尽管有 inclusion
的动作,但由於 header 已有例外条款,允许不受 GPL 感染,因此不特别释出这部份
的程式码,是被允许的。
关於 C++ template 与潜在的授权议题,可参考:
http://blog.linux.org.tw/~jserv/archives/001874.html
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 59.115.130.82
1F:推 andytzeng:看到神秘人物登场了.... 07/02 09:32
2F:→ huki:出现神级的角色~~~ 07/02 11:09