From 053482f2899f6baf9fca996d24cb8fe6a888336c Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 11 Nov 2022 19:30:09 +0100 Subject: Remove build flag recommendations This was based on recommendations from the Arch Linux wiki. Because they could maybe break something on other distributions they are removed here and maybe re-introduced later in a packaging repository. Furthermore the Makefile is more readable this way. --- Makefile | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Makefile b/Makefile index c31c0d7..a7ae041 100644 --- a/Makefile +++ b/Makefile @@ -5,13 +5,6 @@ PREFIX="/usr" .PHONY: all clean install debug all: - # some recommended options for Go building (https://wiki.archlinux.org/title/Go_package_guidelines) - export CGO_CPPFLAGS="${CPPFLAGS}" - export CGO_CFLAGS="${CFLAGS}" - export CGO_CXXFLAGS="${CXXFLAGS}" - export CGO_LDFLAGS="${LDFLAGS}" - export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" - mkdir -p build go build -o build/ceres main.go -- cgit v1.2.3-70-g09d2