diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-11-20 07:01:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-20 07:01:22 +0100 |
commit | fddf616cdfe464113e96ec6d50a38c8fdaf90899 (patch) | |
tree | d7d69b6a525e0c194205f97dc6a42889c417fa84 /packages | |
parent | cd6f8ab1040139d101189e7af789db5fdbaa9266 (diff) | |
parent | 6f89529fc3575a14332d25f4e5719c720513d73c (diff) | |
download | vyos-build-fddf616cdfe464113e96ec6d50a38c8fdaf90899.tar.gz vyos-build-fddf616cdfe464113e96ec6d50a38c8fdaf90899.zip |
Merge pull request #286 from mcbridematt/t4831-telegraf-arm64
telegraf: T4831: fix build on arm64 / remove hardcoded amd64 reference
Diffstat (limited to 'packages')
-rwxr-xr-x | packages/telegraf/build.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/telegraf/build.sh b/packages/telegraf/build.sh index 77712412..46dfc88a 100755 --- a/packages/telegraf/build.sh +++ b/packages/telegraf/build.sh @@ -2,6 +2,8 @@ CWD=$(pwd) set -e +BUILD_ARCH=$(dpkg-architecture -qDEB_TARGET_ARCH) + SRC=telegraf if [ ! -d ${SRC} ]; then echo "Source directory does not exists, please 'git clone'" @@ -16,7 +18,7 @@ cp ${PLUGIN_DIR}/inputs/all/all.go ${SRC}/plugins/inputs/all/all.go echo "I: Selecting Output plugins" cp ${PLUGIN_DIR}/outputs/all/all.go ${SRC}/plugins/outputs/all/all.go -echo "I: Build Debian amd64 package" +echo "I: Build Debian ${BUILD_ARCH} package" cd ${SRC} export PATH=/opt/go/bin:$PATH -LDFLAGS=-w make amd64.deb +LDFLAGS=-w make "${BUILD_ARCH}.deb" |