From: Dave Wallace Date: Tue, 30 Aug 2022 02:45:03 +0000 (-0400) Subject: build: remove lto flags in dpdk build X-Git-Tag: v23.02-rc0~42 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=738eaa6f4965956a592392834bd1b6fcd0a20633;p=vpp.git build: remove lto flags in dpdk build - Ubuntu 22.04 enables LTO by default and dpdk adds lto flags to CFLAGS. This CI jobs to fail with OOM-Kill (especially on ARM64) due to lto consuming large amounts of memory. Type: make Signed-off-by: Dave Wallace Change-Id: I5a3d3a08e2caddb4790b281b80b16081567aed5b --- diff --git a/build/external/deb/debian/rules b/build/external/deb/debian/rules index 2b1157e5e48..cddf1e9c6e8 100755 --- a/build/external/deb/debian/rules +++ b/build/external/deb/debian/rules @@ -1,6 +1,9 @@ #!/usr/bin/make -f DH_VERBOSE = 1 DEB_BUILD_OPTIONS = noddebs +DEB_CFLAGS_MAINT_STRIP = -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -O2 +DEB_LDFLAGS_MAINT_STRIP = -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects +DEB_CFLAGS_MAINT_APPEND = -O3 PKG=vpp-ext-deps VERSION = $(shell dpkg-parsechangelog | sed -nr '/^Version:/s/Version: //p')