build: remove lto flags in dpdk build 36/37036/3
authorDave Wallace <dwallacelf@gmail.com>
Tue, 30 Aug 2022 02:45:03 +0000 (22:45 -0400)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 31 Aug 2022 18:58:42 +0000 (18:58 +0000)
- 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

build/external/deb/debian/rules

index 2b1157e..cddf1e9 100755 (executable)
@@ -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')