Skip to content

Commit d21ab66

Browse files
committed
Fix symlink path for libgcc
The symlink for libgcc_so.1.0 is made to point to libunwind.so which is functionally correct but it fails some linux distro packaging complain because libunwind.so is made part of -dev package but libgcc_so.1.0 ends up in the real package, and creates an unneeded package -> dev dependency create the symlink to point to libunwind.so.1 instead then the boundaries of packaging are not crossed and all is well.
1 parent e980458 commit d21ab66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm-libgcc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ add_custom_target(llvm-libgcc ALL
137137
DEPENDS unwind_shared unwind_static clang_rt.builtins-${COMPILER_RT_DEFAULT_TARGET_ARCH}
138138
COMMAND ${CMAKE_COMMAND} -E create_symlink ${LLVM_LIBGCC_COMPILER_RT} libgcc.a
139139
COMMAND ${CMAKE_COMMAND} -E create_symlink libunwind.a libgcc_eh.a
140-
COMMAND ${CMAKE_COMMAND} -E create_symlink libunwind.so libgcc_s.so.1.0
140+
COMMAND ${CMAKE_COMMAND} -E create_symlink libunwind.so.1 libgcc_s.so.1.0
141141
COMMAND ${CMAKE_COMMAND} -E create_symlink libgcc_s.so.1.0 libgcc_s.so.1
142142
COMMAND ${CMAKE_COMMAND} -E create_symlink libgcc_s.so.1 libgcc_s.so
143143
)

0 commit comments

Comments
 (0)