scripts/build/osx: set CXX, too
In case go build will see a need to call C++ (rather than C) compiler, CXX env var need to be properly set (to osxcross wrapper). Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com> (cherry picked from commitee461303f9) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit:f9a42a4024Component: cli
This commit is contained in:
committed by
Sebastiaan van Stijn
parent
ff6fb95074
commit
38a4a307e2
@ -11,6 +11,7 @@ export CGO_ENABLED=1
|
||||
export GOOS=darwin
|
||||
export GOARCH=amd64
|
||||
export CC=o64-clang
|
||||
export CXX=o64-clang++
|
||||
export LDFLAGS="$LDFLAGS -linkmode external -s"
|
||||
export LDFLAGS_STATIC_DOCKER='-extld='${CC}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user