<mwalle>
libgcc (a libary provided with the gnu c compiler) provides these functions, so the easiest way to do it is to (statically) link against libgcc
<ysionneau>
However, the FSF decided long ago to allow developers to use GCC's libraries to compile any program, regardless of its license < so I can use this code, right?
<ysionneau>
and link with NetBSD kernel, regardless of the fact that I put the whole thing under BSD
<larsc>
yes
<larsc>
inal
<ysionneau>
so I'm probably fine, even with the scary gplv3 header in the file
<larsc>
you can still use them even if they were under the gpl3
<larsc>
it would just mean that your binary kernel is also under the terms of the gpl3
<ysionneau>
? really?
<larsc>
yes
<ysionneau>
doesn't the exception apply?
<larsc>
for the case the exception didn't apply
<ysionneau>
you're saying the exception does not apply to my use of the file from libgcc?
<ysionneau>
or you're saying "if it does not apply"
<larsc>
I'm saying that I'm not a lawyer ;)
<ysionneau>
=)
<larsc>
I think it applies
<larsc>
but even for the case that it did not, you'd still be safe
<mwalle>
i think you are not allowed to copy that file
<mwalle>
ie. integrating it into your own project
<larsc>
unless under the terms of gplv3
<mwalle>
yeah of course ;)
<larsc>
;)
<mwalle>
but what you can do, is to link the GPLv3 libgcc against the BSD netbsd
<ysionneau>
:(
<ysionneau>
that might imply me to go against the current of netbsd build system
<ysionneau>
since it seems the kernel does not link with libgcc
<mwalle>
ysionneau: are you sure? on all platforms?
<ysionneau>
I will need to fight a little bit with the build system
<ysionneau>
mwalle: I'm not totally sure
<mwalle>
ask in #netbsd :)
<mwalle>
on ircnet (?)
<ysionneau>
freenode
<mwalle>
mhh
<larsc>
ysionneau: I think we've talked about this before and you said that some of the platforms link against libgcc
<ysionneau>
ah!
<ysionneau>
ok
<larsc>
iirc
<mwalle>
is that the official channel?
<ysionneau>
my memory is kind of blurry about this topic
<ysionneau>
I don't remember very well
<ysionneau>
mwalle: I think so
<larsc>
don't bang your head against the wall that often ;)