diff options
author | yaourt <yaourt@users.noreply.github.com> | 2017-02-19 02:43:27 +0100 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2017-02-18 20:43:27 -0500 |
commit | 1841316f188538b572c784b6875a89f63a83c513 (patch) | |
tree | b046b1e5ab304f797494fd6b0bb2c926779260aa /docker/no-pic.patch | |
parent | 0a2f87f9414b184759c45a4da63c72470557b0f1 (diff) |
Provide an updated Dockerfile where Gogs is build with Go 1.8 (#4151)
In order to have an up to date Docker image based on alpine 3.5
and having Gogs built with Go 1.8
Refs: [ #4145 ]
Diffstat (limited to 'docker/no-pic.patch')
-rw-r--r-- | docker/no-pic.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docker/no-pic.patch b/docker/no-pic.patch new file mode 100644 index 00000000..74d30270 --- /dev/null +++ b/docker/no-pic.patch @@ -0,0 +1,16 @@ +diff --git a/src/cmd/link/internal/ld/lib.go b/src/cmd/link/internal/ld/lib.go +index 14f4fa9..5599307 100644 +--- a/src/cmd/link/internal/ld/lib.go ++++ b/src/cmd/link/internal/ld/lib.go +@@ -1272,6 +1272,11 @@ func hostlink() { + argv = append(argv, peimporteddlls()...) + } + ++ // The Go linker does not currently support building PIE ++ // executables when using the external linker. See: ++ // https://github.com/golang/go/issues/6940 ++ argv = append(argv, "-fno-PIC") ++ + if l.Debugvlog != 0 { + l.Logf("%5.2f host link:", obj.Cputime()) + for _, v := range argv {
\ No newline at end of file |