Allow Statically Linking in Go (#2067)

* unset -L and -rpath from CGO_LDFLAGS

Signed-off-by: Pedro Tôrres <t0rr3sp3dr0@gmail.com>

* allow go statically linking

Signed-off-by: Pedro Tôrres <t0rr3sp3dr0@gmail.com>

* fix setup.py

---------

Signed-off-by: Pedro Tôrres <t0rr3sp3dr0@gmail.com>
Co-authored-by: mio <mio@lazym.io>
This commit is contained in:
Pedro Tôrres
2024-12-20 19:02:28 -08:00
committed by GitHub
parent 7737e7b436
commit 2899088844
7 changed files with 33 additions and 76 deletions

View File

@@ -0,0 +1,4 @@
package unicorn
// #cgo CFLAGS: -I../../../include -O3 -Wall -Werror
import "C"