mirror of
https://github.com/dslm4515/BMLFS.git
synced 2025-08-20 14:31:47 +00:00
Linux-PAM: Added optional optimization with LTO
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user