aboutsummaryrefslogtreecommitdiff
path: root/extra/go/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-01-02 00:38:29 +0300
committerCem Keylan <cem@ckyln.com>2021-01-02 00:38:29 +0300
commit291967935394b463e3ec9242cadaa2030456b303 (patch)
tree587033f0563e009aa4f9ad9961a8e986c94c7c98 /extra/go/build
parent3e0371f0693ffebe31f7b93913f1e1456430baba (diff)
downloadrepository-291967935394b463e3ec9242cadaa2030456b303.tar.gz
go: remove bash dependency
Diffstat (limited to 'extra/go/build')
-rwxr-xr-xextra/go/build7
1 files changed, 5 insertions, 2 deletions
diff --git a/extra/go/build b/extra/go/build
index bb6ce565..c051bc2d 100755
--- a/extra/go/build
+++ b/extra/go/build
@@ -1,5 +1,8 @@
#!/bin/sh -e
+# Remove bash as a make dependency
+patch -p1 < no-bash.patch
+
# Disable stripping of binaries.
# This breaks Go.
:> nostrip
@@ -15,7 +18,7 @@ export GO_LDFLAGS="-w -s"
mkdir -p lib/go-bootstrap
cd "$GOROOT/src"
- bash ./make.bash
+ ./make.bash
cd ..
cp -a bin pkg src ../lib/go-bootstrap
cd ..
@@ -33,7 +36,7 @@ export GOROOT=$PWD/go-current
(
cd "$GOROOT/src"
- bash make.bash --no-clean -v
+ ./make.bash --no-clean -v
)
cd "$GOROOT"