Fix build error because of too many levels of recursion 29/309429/1 devel master
authorxuhy <huayong.xu@samsung.com>
Wed, 10 Apr 2024 03:21:54 +0000 (11:21 +0800)
committerxuhy <huayong.xu@samsung.com>
Wed, 10 Apr 2024 03:24:39 +0000 (11:24 +0800)
Change-Id: I0abe6aca69b1b76934fed9f2c866fb947da006cd
Signed-off-by: xuhy <huayong.xu@samsung.com>
packaging/zstd.spec

index c58f742..d4a05c0 100644 (file)
@@ -85,7 +85,7 @@ Needed for compiling programs that link with the library.
 %patch1 -p1
 
 %build
-%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
+%global _lto_cflags %{?_lto_cflags} -ffat-lto-objects
 export CFLAGS="%{optflags}"
 export CXXFLAGS="%{optflags} -std=c++11"
 for dir in lib programs contrib/pzstd; do