[dpdk-dev] [PATCH v2 01/10] build: add an option to enable LTO build

Bruce Richardson bruce.richardson at intel.com
Wed Sep 18 12:36:02 CEST 2019


On Tue, Sep 17, 2019 at 09:57:45AM +0200, Andrzej Ostruszka wrote:
> This patch adds an option to enable link time optimization.  In addition
> to LTO option itself (-flto) fat-lto-objects are being used.  This is
> because during the build pmdinfogen scans the generated ELF objects to
> find this_pmd_name* symbol in symbol table.  Without fat-lto-objects gcc
> produces ELF only with extra symbols for internal use during linking and
> clang does not produce ELF at all (only LLVM IR bitcode).
> 
> Signed-off-by: Andrzej Ostruszka <aostruszka at marvell.com>
>
For meson changes part:

Acked-by: Bruce Richardson <bruce.richardson at intel.com>


More information about the dev mailing list