aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmake/library.cmake
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2021-11-06 17:09:37 +0100
committerBeno�t Ganne <bganne@cisco.com>2021-11-08 16:39:06 +0000
commit1e26724dce437566fb645374d41f7b18a7199937 (patch)
tree0adaef9bf852cde1b0e8d15a389142cdf4b4caaa /src/cmake/library.cmake
parent81865bc0e3cfe2cf384640740ccbb18cc9a96163 (diff)
build: -Wno-stringop-overflow during LTO phase
Type: make Change-Id: I735fa411366c41981e255921eceb18ebbb4b5fe1 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/cmake/library.cmake')
-rw-r--r--src/cmake/library.cmake3
1 files changed, 3 insertions, 0 deletions
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)