mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-22 18:55:29 +03:00
The buildscript hardcodes -buildmode=pie when built on linux. This does not work on mips64. Because we control this with GOFLAGS, just remove the buildflags.
15 lines
798 B
Diff
15 lines
798 B
Diff
Description: buildflags only set -buildmode=pie on linux, which we control with
|
|
GOFLAGS. -buildmode=pie is not supported on mips.
|
|
diff --git a/build.sh b/build.sh
|
|
index 519f9c8..c96ed9c 100755
|
|
--- a/build.sh
|
|
+++ b/build.sh
|
|
@@ -29,7 +29,7 @@ mkdir -p bin
|
|
ec=0
|
|
for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongoreplay; do
|
|
echo "Building ${i}..."
|
|
- go build -o "bin/$i$BINARY_EXT" $(buildflags) -ldflags "$(print_ldflags)" -tags "$(print_tags $tags)" "$i/main/$i.go" || { echo "Error building $i"; ec=1; break; }
|
|
+ go build -o "bin/$i$BINARY_EXT" -ldflags "$(print_ldflags)" -tags "$(print_tags $tags)" "$i/main/$i.go" || { echo "Error building $i"; ec=1; break; }
|
|
./bin/${i}${BINARY_EXT} --version | head -1
|
|
done
|
|
|