diff options
author | Peter Wu <peter@lekensteyn.nl> | 2020-01-21 04:13:16 +0000 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2020-01-21 04:16:26 +0000 |
commit | 3daf2762a956ee1c578f6320d6caf2885a2a8ea4 (patch) | |
tree | fdc72f29baaf81c5f10bb863a91d8a0f0c48d241 /debian/rules | |
parent | aee58d4583b1aec4db06aedf9072205e5e184970 (diff) | |
download | rspamd-3daf2762a956ee1c578f6320d6caf2885a2a8ea4.tar.gz rspamd-3daf2762a956ee1c578f6320d6caf2885a2a8ea4.zip |
[Minor] CMake: Add ENABLE_LTO option
* The `CMAKE_BUILD_TYPE=None` option is commonly used to respect the
user's optimization flags. Users may be interested in enabling LTO
anyway in that case. Implement this the Debian build.
* Remove typo, the value is called RelWithDebInfo. Enable LTO for this
by default.
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules index 17ebd6eb1..309bd0738 100755 --- a/debian/rules +++ b/debian/rules @@ -30,8 +30,9 @@ override_dh_auto_configure: -DLIBDIR=/usr/lib/rspamd \ -DINCLUDEDIR=/usr/include \ -DSYSTEMDDIR=/lib/systemd/system \ - -DCMAKE_BUILD_TYPE=ReleaseWithDebInfo \ + -DCMAKE_BUILD_TYPE=None \ -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \ + -DENABLE_LTO=ON \ -DDEBIAN_BUILD=1 \ -DENABLE_JEMALLOC=ON \ -DENABLE_PCRE2=OFF \ |