From 4b34b6db71d1bb52c936b7a871e4b2544c3f79c5 Mon Sep 17 00:00:00 2001 From: t4lz Date: Fri, 8 Sep 2023 09:52:50 +0200 Subject: [PATCH] add missing platform.sh to http-keep-alive (#20) --- http-keep-alive/platform.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 http-keep-alive/platform.sh diff --git a/http-keep-alive/platform.sh b/http-keep-alive/platform.sh new file mode 100755 index 0000000..4b06773 --- /dev/null +++ b/http-keep-alive/platform.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +# Used in Docker build to set platform dependent variables + +case $TARGETARCH in + + "amd64") + echo "x86_64-unknown-linux-gnu" > /.platform + echo "" > /.compiler + ;; + "arm64") + echo "aarch64-unknown-linux-gnu" > /.platform + echo "gcc-aarch64-linux-gnu" > /.compiler + ;; + "arm") + echo "armv7-unknown-linux-gnueabihf" > /.platform + echo "gcc-arm-linux-gnueabihf" > /.compiler + ;; +esac +