mirror of
https://github.com/restic/restic.git
synced 2026-11-20 07:02:11 +00:00
Add cross-compilation to README and Manual
This commit is contained in:
1 parent
f8dd5d5088
commit
fdb9872cef
2 files changed
+21
-1
No files matched your search
@@ -44,6 +44,16 @@ afterwards you'll find the binary in the current directory:
|
|||||||
restic [OPTIONS] <command>
|
restic [OPTIONS] <command>
|
||||||
[...]
|
[...]
|
||||||
|
|
||||||
|
You can easily cross-compile restic for all supported platforms, just supply
|
||||||
|
the target OS and platform via the command-line options like this (for Windows
|
||||||
|
and FreeBSD respectively):
|
||||||
|
|
||||||
|
$ go run build.go --goos windows --goarch amd64
|
||||||
|
|
||||||
|
$ go run build.go --goos freebsd --goarch 386
|
||||||
|
|
||||||
|
The resulting binary is statically linked and does not require any libraries.
|
||||||
|
|
||||||
More documentation can be found in the [user manual](doc/Manual.md).
|
More documentation can be found in the [user manual](doc/Manual.md).
|
||||||
|
|
||||||
At the moment, the only tested compiler for restic is the official Go compiler.
|
At the moment, the only tested compiler for restic is the official Go compiler.
|
||||||
|
|||||||
+11
-1
@@ -1,4 +1,4 @@
|
|||||||
Thanks for using restic. This document will give you an overview of the basic
|
nhanks for using restic. This document will give you an overview of the basic
|
||||||
functionality provided by restic.
|
functionality provided by restic.
|
||||||
|
|
||||||
# Installing restic
|
# Installing restic
|
||||||
@@ -43,6 +43,16 @@ $ cd restic
|
|||||||
$ go run build.go
|
$ go run build.go
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can easily cross-compile restic for all supported platforms, just supply
|
||||||
|
the target OS and platform via the command-line options like this (for Windows
|
||||||
|
and FreeBSD respectively):
|
||||||
|
|
||||||
|
$ go run build.go --goos windows --goarch amd64
|
||||||
|
|
||||||
|
$ go run build.go --goos freebsd --goarch 386
|
||||||
|
|
||||||
|
The resulting binary is statically linked and does not require any libraries.
|
||||||
|
|
||||||
At the moment, the only tested compiler for restic is the official Go compiler.
|
At the moment, the only tested compiler for restic is the official Go compiler.
|
||||||
Building restic with gccgo may work, but is not supported.
|
Building restic with gccgo may work, but is not supported.
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user