aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-11-14 12:57:56 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-11-14 12:57:56 +0000
commitfb32d339a7ec61682e097d464a50c97766525f1b (patch)
tree5ba5fc75c10ac13a3b62fe87b799e86be5acc89a
parentchangelog: move pipe-* actions from ‘fixed’ to ‘added’ (diff)
install: remove -fno-plt from recommended CFLAGS
It appears to _worsen_ the performance...
-rw-r--r--INSTALL.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/INSTALL.md b/INSTALL.md
index 1b947549..df56d73a 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -127,10 +127,10 @@ mkdir -p bld/release && cd bld/release
### Release build
```sh
-CFLAGS+="-O3 -march=native -fno-plt"
-export CFLAGS
+export CFLAGS="$CFLAGS -O3 -march=native"
meson --buildtype=release --prefix=/usr -Db_lto=true ../..
```
+Both `-O3` (in `CFLAGS`) and `-Db_lto=true` are **highly** recommended.
For performance reasons, I strongly recommend doing a
[PGO](#profile-guided-optimization) (Profile Guided Optimization)