mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
all: enable c-shared/c-archive support for freebsd/amd64
Fixes #14327 Much of the code is based on the linux/amd64 code that implements these build modes, and code is shared where possible. Change-Id: Ia510f2023768c0edbc863aebc585929ec593b332 Reviewed-on: https://go-review.googlesource.com/93875 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
ff5cf43df5
commit
88129f0cb2
21 changed files with 357 additions and 53 deletions
|
|
@ -484,7 +484,10 @@ func raisebadsignal(sig uint32, c *sigctxt) {
|
|||
// re-installing sighandler. At this point we can just
|
||||
// return and the signal will be re-raised and caught by
|
||||
// the default handler with the correct context.
|
||||
if (isarchive || islibrary) && handler == _SIG_DFL && c.sigcode() != _SI_USER {
|
||||
//
|
||||
// On FreeBSD, the libthr sigaction code prevents
|
||||
// this from working so we fall through to raise.
|
||||
if GOOS != "freebsd" && (isarchive || islibrary) && handler == _SIG_DFL && c.sigcode() != _SI_USER {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue