]> git.ipfire.org Git - thirdparty/pdns.git/commit
Add a configure option to enable LTO 12441/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 20 Jan 2023 11:41:32 +0000 (12:41 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 20 Jan 2023 11:41:32 +0000 (12:41 +0100)
commit1519d7926cd319d709fe443995b202335f7802f5
tree5a23477a6696a736b955666bd717bd6dc48557ae
parentb03958cab102611f5936ede33532430c4641ffa8
Add a configure option to enable LTO

The supported options are:
- thin: this is the recommended option for clang, as it is more
  scalable. It automatically determines the number of CPU cores
  to use. It requires support in the linker as well.
- auto: this is the recommended option for GCC, and a valid
  fallback for clang when 'thin' is not supported. It automatically
  determines the number of CPU cores to use as well.
- yes: this translates to '-flto', which will use a single CPU core
  in most cases, but is a valid fallback.
- no: LTO is disabled.
configure.ac
m4/pdns_enable_lto.m4 [new file with mode: 0644]
pdns/dnsdistdist/configure.ac
pdns/dnsdistdist/m4/pdns_enable_lto.m4 [new symlink]
pdns/recursordist/configure.ac
pdns/recursordist/m4/pdns_enable_lto.m4 [new symlink]