From 79624340a1ef4ef6aef7d6dc2cd24dba7e014237 Mon Sep 17 00:00:00 2001 From: Jakub Panek Date: Fri, 1 Apr 2022 21:39:10 +0000 Subject: [PATCH] abuild.conf: add -trimpath flag remove all file system paths from the resulting executable. Instead of absolute file system paths, the recorded file names will begin either a module path@version (when using modules), or a plain import path (when using the standard library, or GOPATH). --- abuild.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/abuild.conf b/abuild.conf index a89aca0..a987ee1 100644 --- a/abuild.conf +++ b/abuild.conf @@ -2,7 +2,7 @@ export CFLAGS="-Os -fomit-frame-pointer" export CXXFLAGS="$CFLAGS" export CPPFLAGS="$CFLAGS" export LDFLAGS="-Wl,--as-needed,-O1,--sort-common" -export GOFLAGS="-buildmode=pie -modcacherw" +export GOFLAGS="-buildmode=pie -modcacherw -trimpath" # Do note that these should work with at least GDC and LDC export DFLAGS="-Os"