From 5b6fcdbef571307db9b6d4649ef3ad2e20ace427 Mon Sep 17 00:00:00 2001 From: Rafael dos Santos Date: Tue, 5 Jan 2021 23:25:41 +0100 Subject: [PATCH] Disable LTO on armv7hl Signed-off-by: Rafael dos Santos --- bcc.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bcc.spec b/bcc.spec index f36fc39..723c94b 100644 --- a/bcc.spec +++ b/bcc.spec @@ -11,6 +11,13 @@ %global with_llvm_shared 1 %endif +# LTO causes +# /usr/bin/ld: CMakeFiles/test_libbcc.dir/test_bpf_table.cc.o (symbol from plugin): +# undefined reference to symbol '_ZZNSt8__detail18__to_chars_10_implIjEEvPcjT_E8__digits@@LLVM_11' +%ifarch armv7hl +%global _lto_cflags %{nil} +%endif + # Force out of source build %undefine __cmake_in_source_build