fix cgo build
@@ -3409,6 +3409,10 @@ module GO_BASE_UNIT {
GO_TOOLCHAIN_ENV += ${env:"GOOS=windows"}
}
+ when ($CLANG == "yes" || $GCC == "yes") {
+ CGO_CFLAGS_VALUE += -fpic
+ }
+
_GO_PROCESS_SRCS()
}
