Disable LTO on armv7hl

Signed-off-by: Rafael dos Santos <rdossant@redhat.com>
This commit is contained in:
Rafael dos Santos 2021-01-05 23:25:41 +01:00
parent 2d1f157e90
commit 5b6fcdbef5

View File

@ -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