From 1e26724dce437566fb645374d41f7b18a7199937 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Sat, 6 Nov 2021 17:09:37 +0100 Subject: build: -Wno-stringop-overflow during LTO phase Type: make Change-Id: I735fa411366c41981e255921eceb18ebbb4b5fe1 Signed-off-by: Damjan Marion --- src/cmake/library.cmake | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/cmake') diff --git a/src/cmake/library.cmake b/src/cmake/library.cmake index c80d7f226d6..fbb2c68f218 100644 --- a/src/cmake/library.cmake +++ b/src/cmake/library.cmake @@ -51,6 +51,9 @@ macro(add_vpp_library lib) target_compile_options (${lib} PRIVATE "-ffunction-sections") target_compile_options (${lib} PRIVATE "-fdata-sections") target_link_libraries (${lib} "-Wl,--gc-sections") + if(compiler_flag_no_stringop_overflow) + target_link_libraries (${lib} "-Wno-stringop-overflow") + endif() endif() if(ARG_MULTIARCH_SOURCES) -- cgit 1.2.3-korg