aboutsummaryrefslogtreecommitdiff
path: root/go/chromeos/go_x86-zgb
blob: 272efb58db7d642b7b61ec1a6f9ef342987e1d53 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

# Invoke the Go cross compiler for x86-zgb.
# Uses ../go_target to add PIE flags.
#
# This is just an example for an 386 board.

GOOS="linux" GOARCH="386" CGO_ENABLED="1" \
	CC="i686-pc-linux-gnu-gcc" \
	CXX="i686-pc-linux-gnu-g++" \
	exec go_target "$@"