mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-23 23:42:35 +00:00
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:
parent
f5d6e5e34b
commit
79624340a1
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user