Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(826)

Side by Side Diff: misc/cgo/android/README

Issue 69170045: code review 69170045: cmd/ld, liblink, pkg/net, pkg/os, pkg/runtime: add supp...
Patch Set: diff -r d8ecadba049e https://code.google.com/p/go Created 11 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | misc/cgo/android/test.go » ('j') | src/pkg/os/tmpdir_unix.go » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 A simple android cgo program.
2
3 First, bootstrap linux/arm with:
4
5 CC_FOR_TARGET=path/to/ndk/gcc GOARCH=arm GOARM=7 ./make.bash
6
7 Then, build the android specific linux/arm toolset with:
8
9 GOOS=linux GOARCH=arm GOARM=7 CGO_ENABLED=1 /path/to/goroot/bin/go install -tags android -ldflags="-H android" -a -v std
10
11 Finally, the android program can be built with
12
13 CGO_ENABLED=1 GOARCH=arm GOARM=7 /path/to/goroot/bin/go build -tags android -ldf lags="-H android" test.go
OLDNEW
« no previous file with comments | « no previous file | misc/cgo/android/test.go » ('j') | src/pkg/os/tmpdir_unix.go » ('J')

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b