Linux-PAM: Added optional optimization with LTO

This commit is contained in:
dslm4515
2021-08-21 18:51:33 -05:00
parent 8fb8ba1dc0
commit d305121e38

View File

@ -11,6 +11,12 @@
# Optional: Berkeley DB, libnsl, libtirpc, libaudit, and Prelude
# Optional for docs: docbook-xml-4.5, docbook-xsl-1.79.2, fop-2.5, libxslt-1.1.34 and either Lynx-2.8.9rel.1 or W3m
# If optimizing, use these flags
export CFLAGS="-march=native -mtune=native -pipe "
export CFLAGS+="-O3 -ffat-lto-objects -flto=4 "
export CFLAGS+="-fstack-protector-strong -fzero-call-used-regs=used "
export LDFLAGS="-Wl,-O2 -Wl,--as-needed "
# disable insecure modules
sed -e 's/pam_rhosts//g' -i modules/Makefile.am