Skip to content

Commit d08a831

Browse files
committed
Add Mingw-w64 licenses and version
This patch adds several license files pertinent to the runtime DLLs that are part of the Mingw-w64 project, specifically: * COPYING3.GCC - GPL v3 - applies to libstdc++ and libgcc * COPYING.RUNTIME - GCC Runtime library exception - applies to libstdc++ and libgcc * COPYING.MinGW-w64-runtime.txt - applies to libstdc++, libgcc and libwinpthread These licenses are included in the binary distribution when the corresponding DLLs are included in the distribution. Also this patch adds Mingw-w64 version information to VERSION.txt when compiling with Mingw-w64.
1 parent 5072e6d commit d08a831

File tree

6 files changed

+1045
-26
lines changed

6 files changed

+1045
-26
lines changed

README.md

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@ Component | Link
4444
LLVM | https://github.com/llvm/llvm-project
4545
newlib | https://sourceware.org/newlib
4646

47+
### Windows runtime DLLs
48+
49+
On Windows the toolchain also uses several DLLs that are part of the Mingw-w64
50+
project (based on GCC):
51+
52+
Library | Project | Link
53+
--------------------|-----------|---------------------
54+
libstdc++-6.dll | GCC | https://gcc.gnu.org
55+
libgcc_s_seh-1.dll | GCC | https://gcc.gnu.org
56+
libwinpthread-1.dll | Mingw-w64 | http://mingw-w64.org
57+
4758
## License
4859

4960
Content of this repository is licensed under Apache-2.0. See
@@ -63,25 +74,6 @@ Download a release of the toolchain for your platform from [Github
6374
releases](https://github.com/ARM-software/LLVM-embedded-toolchain-for-Arm/releases)
6475
and extract the archive into an arbitrary directory.
6576

66-
### Downloading runtime libraries (Windows only)
67-
68-
We currently don't ship several Windows DLLs that are part of the GCC and
69-
Mingw-w64 projects due to licensing considerations.
70-
71-
In order to use the toolchain on Windows you will need to provide the following
72-
three libraries manually.
73-
74-
Library | Project | Link
75-
--------------------|-----------|---------------------
76-
libstdc++-6.dll | GCC | https://gcc.gnu.org
77-
libgcc_s_seh-1.dll | GCC | https://gcc.gnu.org
78-
libwinpthread-1.dll | Mingw-w64 | http://mingw-w64.org
79-
80-
1. Download the [MinGW-W64 GCC-7.3.0 x86_64-posix-seh](https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/7.3.0/threads-posix/seh/x86_64-7.3.0-release-posix-seh-rt_v5-rev0.7z) release from SourceForge
81-
2. Extract the archive and copy the three DLLs mentioned above from the
82-
`mingw64/bin` directory to the `LLVMEmbeddedToolchainForArm-<revision>/bin`
83-
directory
84-
8577
### Using the toolchain
8678

8779
To use the toolchain you need to provide a compiler configuration file on the
Lines changed: 240 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,240 @@
1+
MinGW-w64 runtime licensing
2+
***************************
3+
4+
This program or library was built using MinGW-w64 and statically
5+
linked against the MinGW-w64 runtime. Some parts of the runtime
6+
are under licenses which require that the copyright and license
7+
notices are included when distributing the code in binary form.
8+
These notices are listed below.
9+
10+
11+
========================
12+
Overall copyright notice
13+
========================
14+
15+
Copyright (c) 2009, 2010, 2011, 2012, 2013 by the mingw-w64 project
16+
17+
This license has been certified as open source. It has also been designated
18+
as GPL compatible by the Free Software Foundation (FSF).
19+
20+
Redistribution and use in source and binary forms, with or without
21+
modification, are permitted provided that the following conditions are met:
22+
23+
1. Redistributions in source code must retain the accompanying copyright
24+
notice, this list of conditions, and the following disclaimer.
25+
2. Redistributions in binary form must reproduce the accompanying
26+
copyright notice, this list of conditions, and the following disclaimer
27+
in the documentation and/or other materials provided with the
28+
distribution.
29+
3. Names of the copyright holders must not be used to endorse or promote
30+
products derived from this software without prior written permission
31+
from the copyright holders.
32+
4. The right to distribute this software or to use it for any purpose does
33+
not give you the right to use Servicemarks (sm) or Trademarks (tm) of
34+
the copyright holders. Use of them is covered by separate agreement
35+
with the copyright holders.
36+
5. If any files are modified, you must cause the modified files to carry
37+
prominent notices stating that you changed the files and the date of
38+
any change.
39+
40+
Disclaimer
41+
42+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
43+
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
44+
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
45+
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
46+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
47+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
48+
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
49+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
50+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
51+
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
52+
53+
========================================
54+
getopt, getopt_long, and getop_long_only
55+
========================================
56+
57+
Copyright (c) 2002 Todd C. Miller <[email protected]>
58+
59+
Permission to use, copy, modify, and distribute this software for any
60+
purpose with or without fee is hereby granted, provided that the above
61+
copyright notice and this permission notice appear in all copies.
62+
63+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
64+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
65+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
66+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
67+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
68+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
69+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
70+
71+
Sponsored in part by the Defense Advanced Research Projects
72+
Agency (DARPA) and Air Force Research Laboratory, Air Force
73+
Materiel Command, USAF, under agreement number F39502-99-1-0512.
74+
75+
* * * * * * *
76+
77+
Copyright (c) 2000 The NetBSD Foundation, Inc.
78+
All rights reserved.
79+
80+
This code is derived from software contributed to The NetBSD Foundation
81+
by Dieter Baron and Thomas Klausner.
82+
83+
Redistribution and use in source and binary forms, with or without
84+
modification, are permitted provided that the following conditions
85+
are met:
86+
1. Redistributions of source code must retain the above copyright
87+
notice, this list of conditions and the following disclaimer.
88+
2. Redistributions in binary form must reproduce the above copyright
89+
notice, this list of conditions and the following disclaimer in the
90+
documentation and/or other materials provided with the distribution.
91+
92+
THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
93+
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
94+
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
95+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
96+
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
97+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
98+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
99+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
100+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
101+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
102+
POSSIBILITY OF SUCH DAMAGE.
103+
104+
105+
===============================================================
106+
gdtoa: Converting between IEEE floating point numbers and ASCII
107+
===============================================================
108+
109+
The author of this software is David M. Gay.
110+
111+
Copyright (C) 1997, 1998, 1999, 2000, 2001 by Lucent Technologies
112+
All Rights Reserved
113+
114+
Permission to use, copy, modify, and distribute this software and
115+
its documentation for any purpose and without fee is hereby
116+
granted, provided that the above copyright notice appear in all
117+
copies and that both that the copyright notice and this
118+
permission notice and warranty disclaimer appear in supporting
119+
documentation, and that the name of Lucent or any of its entities
120+
not be used in advertising or publicity pertaining to
121+
distribution of the software without specific, written prior
122+
permission.
123+
124+
LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
125+
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
126+
IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
127+
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
128+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
129+
IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
130+
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
131+
THIS SOFTWARE.
132+
133+
* * * * * * *
134+
135+
The author of this software is David M. Gay.
136+
137+
Copyright (C) 2005 by David M. Gay
138+
All Rights Reserved
139+
140+
Permission to use, copy, modify, and distribute this software and its
141+
documentation for any purpose and without fee is hereby granted,
142+
provided that the above copyright notice appear in all copies and that
143+
both that the copyright notice and this permission notice and warranty
144+
disclaimer appear in supporting documentation, and that the name of
145+
the author or any of his current or former employers not be used in
146+
advertising or publicity pertaining to distribution of the software
147+
without specific, written prior permission.
148+
149+
THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
150+
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN
151+
NO EVENT SHALL THE AUTHOR OR ANY OF HIS CURRENT OR FORMER EMPLOYERS BE
152+
LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
153+
DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
154+
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
155+
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
156+
SOFTWARE.
157+
158+
* * * * * * *
159+
160+
The author of this software is David M. Gay.
161+
162+
Copyright (C) 2004 by David M. Gay.
163+
All Rights Reserved
164+
Based on material in the rest of /netlib/fp/gdota.tar.gz,
165+
which is copyright (C) 1998, 2000 by Lucent Technologies.
166+
167+
Permission to use, copy, modify, and distribute this software and
168+
its documentation for any purpose and without fee is hereby
169+
granted, provided that the above copyright notice appear in all
170+
copies and that both that the copyright notice and this
171+
permission notice and warranty disclaimer appear in supporting
172+
documentation, and that the name of Lucent or any of its entities
173+
not be used in advertising or publicity pertaining to
174+
distribution of the software without specific, written prior
175+
permission.
176+
177+
LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
178+
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
179+
IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
180+
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
181+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
182+
IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
183+
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
184+
THIS SOFTWARE.
185+
186+
187+
=========================
188+
Parts of the math library
189+
=========================
190+
191+
Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
192+
193+
Developed at SunSoft, a Sun Microsystems, Inc. business.
194+
Permission to use, copy, modify, and distribute this
195+
software is freely granted, provided that this notice
196+
is preserved.
197+
198+
* * * * * * *
199+
200+
Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
201+
202+
Developed at SunPro, a Sun Microsystems, Inc. business.
203+
Permission to use, copy, modify, and distribute this
204+
software is freely granted, provided that this notice
205+
is preserved.
206+
207+
* * * * * * *
208+
209+
FIXME: Cephes math lib
210+
Copyright (C) 1984-1998 Stephen L. Moshier
211+
212+
It sounds vague, but as to be found at
213+
<http://lists.debian.org/debian-legal/2004/12/msg00295.html>, it gives an
214+
impression that the author could be willing to give an explicit
215+
permission to distribute those files e.g. under a BSD style license. So
216+
probably there is no problem here, although it could be good to get a
217+
permission from the author and then add a license into the Cephes files
218+
in MinGW runtime. At least on follow-up it is marked that debian sees the
219+
version a-like BSD one. As MinGW.org (where those cephes parts are coming
220+
from) distributes them now over 6 years, it should be fine.
221+
222+
===================================
223+
Headers and IDLs imported from Wine
224+
===================================
225+
226+
Some header and IDL files were imported from the Wine project. These files
227+
are prominent maked in source. Their copyright belongs to contributors and
228+
they are distributed under LGPL license.
229+
230+
Disclaimer
231+
232+
This library is free software; you can redistribute it and/or
233+
modify it under the terms of the GNU Lesser General Public
234+
License as published by the Free Software Foundation; either
235+
version 2.1 of the License, or (at your option) any later version.
236+
237+
This library is distributed in the hope that it will be useful,
238+
but WITHOUT ANY WARRANTY; without even the implied warranty of
239+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
240+
Lesser General Public License for more details.

mingw-licenses/COPYING.RUNTIME

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
GCC RUNTIME LIBRARY EXCEPTION
2+
3+
Version 3.1, 31 March 2009
4+
5+
Copyright (C) 2009 Free Software Foundation, Inc. <http://fsf.org/>
6+
7+
Everyone is permitted to copy and distribute verbatim copies of this
8+
license document, but changing it is not allowed.
9+
10+
This GCC Runtime Library Exception ("Exception") is an additional
11+
permission under section 7 of the GNU General Public License, version
12+
3 ("GPLv3"). It applies to a given file (the "Runtime Library") that
13+
bears a notice placed by the copyright holder of the file stating that
14+
the file is governed by GPLv3 along with this Exception.
15+
16+
When you use GCC to compile a program, GCC may combine portions of
17+
certain GCC header files and runtime libraries with the compiled
18+
program. The purpose of this Exception is to allow compilation of
19+
non-GPL (including proprietary) programs to use, in this way, the
20+
header files and runtime libraries covered by this Exception.
21+
22+
0. Definitions.
23+
24+
A file is an "Independent Module" if it either requires the Runtime
25+
Library for execution after a Compilation Process, or makes use of an
26+
interface provided by the Runtime Library, but is not otherwise based
27+
on the Runtime Library.
28+
29+
"GCC" means a version of the GNU Compiler Collection, with or without
30+
modifications, governed by version 3 (or a specified later version) of
31+
the GNU General Public License (GPL) with the option of using any
32+
subsequent versions published by the FSF.
33+
34+
"GPL-compatible Software" is software whose conditions of propagation,
35+
modification and use would permit combination with GCC in accord with
36+
the license of GCC.
37+
38+
"Target Code" refers to output from any compiler for a real or virtual
39+
target processor architecture, in executable form or suitable for
40+
input to an assembler, loader, linker and/or execution
41+
phase. Notwithstanding that, Target Code does not include data in any
42+
format that is used as a compiler intermediate representation, or used
43+
for producing a compiler intermediate representation.
44+
45+
The "Compilation Process" transforms code entirely represented in
46+
non-intermediate languages designed for human-written code, and/or in
47+
Java Virtual Machine byte code, into Target Code. Thus, for example,
48+
use of source code generators and preprocessors need not be considered
49+
part of the Compilation Process, since the Compilation Process can be
50+
understood as starting with the output of the generators or
51+
preprocessors.
52+
53+
A Compilation Process is "Eligible" if it is done using GCC, alone or
54+
with other GPL-compatible software, or if it is done without using any
55+
work based on GCC. For example, using non-GPL-compatible Software to
56+
optimize any GCC intermediate representations would not qualify as an
57+
Eligible Compilation Process.
58+
59+
1. Grant of Additional Permission.
60+
61+
You have permission to propagate a work of Target Code formed by
62+
combining the Runtime Library with Independent Modules, even if such
63+
propagation would otherwise violate the terms of GPLv3, provided that
64+
all Target Code was generated by Eligible Compilation Processes. You
65+
may then convey such a combination under terms of your choice,
66+
consistent with the licensing of the Independent Modules.
67+
68+
2. No Weakening of GCC Copyleft.
69+
70+
The availability of this Exception does not imply any general
71+
presumption that third-party software is unaffected by the copyleft
72+
requirements of the license of GCC.
73+

0 commit comments

Comments
 (0)