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).
This commit is contained in:
Jakub Panek 2022-04-01 21:39:10 +00:00 committed by Natanael Copa
parent f5d6e5e34b
commit 79624340a1

View File

@ -2,7 +2,7 @@ export CFLAGS="-Os -fomit-frame-pointer"
export CXXFLAGS="$CFLAGS" export CXXFLAGS="$CFLAGS"
export CPPFLAGS="$CFLAGS" export CPPFLAGS="$CFLAGS"
export LDFLAGS="-Wl,--as-needed,-O1,--sort-common" 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 # Do note that these should work with at least GDC and LDC
export DFLAGS="-Os" export DFLAGS="-Os"