mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-23 23:42:35 +00:00
abuild.conf: LDFLAGS+=-O1,--sort-common
These options are used by default in Arch Linux [0], and slightly reduce binary size. Note that -D_FORTIFY_SOURCE=2 and -z relro -z now are already enabled by default in Alpine for all gcc invocations. [0] https://git.archlinux.org/svntogit/packages.git/tree/trunk/makepkg.conf?h=packages/pacman
This commit is contained in:
parent
f523aabce3
commit
4e548b722b
@ -1,7 +1,7 @@
|
||||
export CFLAGS="-Os -fomit-frame-pointer"
|
||||
export CXXFLAGS="$CFLAGS"
|
||||
export CPPFLAGS="$CFLAGS"
|
||||
export LDFLAGS="-Wl,--as-needed"
|
||||
export LDFLAGS="-Wl,--as-needed,-O1,--sort-common"
|
||||
export GOFLAGS="-buildmode=pie"
|
||||
# Do note that these should work with at least GDC and LDC
|
||||
export DFLAGS="-Os"
|
||||
|
Loading…
Reference in New Issue
Block a user