From 5c34bcfe53c84efe72b2d38ff065b644839d0058 Mon Sep 17 00:00:00 2001 From: Liu Xiangchao Date: Fri, 31 Dec 2021 15:02:08 +0800 Subject: [PATCH] modify -fpic to -fPIC --- cgo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgo.go b/cgo.go index 90f92c2a..a8d2a878 100644 --- a/cgo.go +++ b/cgo.go @@ -6,7 +6,7 @@ package v8go //go:generate clang-format -i --verbose -style=Chromium v8go.h v8go.cc -// #cgo CXXFLAGS: -fno-rtti -fpic -std=c++14 -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -I${SRCDIR}/deps/include -Wall +// #cgo CXXFLAGS: -fno-rtti -fPIC -std=c++14 -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -I${SRCDIR}/deps/include -Wall // #cgo LDFLAGS: -pthread -lv8 // #cgo darwin,amd64 LDFLAGS: -L${SRCDIR}/deps/darwin_x86_64 // #cgo darwin,arm64 LDFLAGS: -L${SRCDIR}/deps/darwin_arm64