Skip to content

Commit

Permalink
scripts/build/osx: set CXX, too
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
kolyshkin committed Oct 11, 2018
1 parent 51848bf commit ee46130
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/build/osx
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down

0 comments on commit ee46130

Please sign in to comment.