Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/community/consul/force-pie-build.patch
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-20 12:48:11 +0200
committerErich Eckner <git@eckner.net>2018-06-20 12:48:11 +0200
commita00b099f8a489d7a69d37bc637b61f3ed2945414 (patch)
tree540d6f39b56df372e7d739d0cfa74b5938f6c652 /community/consul/force-pie-build.patch
parent54b965bb7774abdcf6f93566b7fa3b77a5e10ab3 (diff)
community/consul: GOARCH=386
Diffstat (limited to 'community/consul/force-pie-build.patch')
-rw-r--r--community/consul/force-pie-build.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/community/consul/force-pie-build.patch b/community/consul/force-pie-build.patch
new file mode 100644
index 00000000..81fcad92
--- /dev/null
+++ b/community/consul/force-pie-build.patch
@@ -0,0 +1,11 @@
+--- a/GNUmakefile 2018-05-22 13:25:37.236071564 +0200
++++ b/GNUmakefile 2018-05-22 13:26:44.852192711 +0200
+@@ -58,7 +58,7 @@
+ # linux builds a linux package independent of the source platform
+ linux:
+ mkdir -p pkg/linux_amd64/
+- GOOS=linux GOARCH=amd64 go build -ldflags '$(GOLDFLAGS)' -tags '$(GOTAGS)' -o pkg/linux_amd64/consul
++ GOOS=linux GOARCH=386 go build -buildmode=pie -ldflags '$(GOLDFLAGS)' -tags '$(GOTAGS)' -o pkg/linux_amd64/consul
+
+ # dist builds binaries for all platforms and packages them for distribution
+ dist: