From 738eaa6f4965956a592392834bd1b6fcd0a20633 Mon Sep 17 00:00:00 2001 From: Dave Wallace Date: Mon, 29 Aug 2022 22:45:03 -0400 Subject: 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 --- build/external/deb/debian/rules | 3 +++ 1 file changed, 3 insertions(+) (limited to 'build/external/deb/debian/rules') 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') -- cgit 1.2.3-korg