Skip to content

Commit b2a1355

Browse files
direc85rubdos
authored andcommitted
Fix compiling clang on i486
This is a first-thing-that-worked patch to fix compiler error: > ninja: error: '/usr/lib64/libz.so', needed by 'bin/clang-tblgen', > missing and no known rule to make it Apparently it doesn't work on i486, likely due to cross compilation.
1 parent 455dcf9 commit b2a1355

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rpm/clang.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ pushd build
134134
%endif
135135
-DCLANG_INCLUDE_TESTS:BOOL=OFF \
136136
-DLLVM_MAIN_SRC_DIR=%{_datadir}/llvm/src \
137-
%if 0%{?__isa_bits} == 64
137+
%ifarch aarch64
138138
-DLLVM_LIBDIR_SUFFIX=64 \
139139
%else
140140
-DLLVM_LIBDIR_SUFFIX= \

0 commit comments

Comments
 (0)