aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2022-08-29 22:45:03 -0400
committerAndrew Yourtchenko <ayourtch@gmail.com>2022-08-31 18:58:42 +0000
commit738eaa6f4965956a592392834bd1b6fcd0a20633 (patch)
tree8e05db9e80c53cd265f7ea66e18b5a05c336805d /build
parentbf12efc432823c83dc06ead6be2094ac605f0021 (diff)
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 <dwallacelf@gmail.com> Change-Id: I5a3d3a08e2caddb4790b281b80b16081567aed5b
Diffstat (limited to 'build')
-rwxr-xr-xbuild/external/deb/debian/rules3
1 files changed, 3 insertions, 0 deletions
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')