LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File workaround-buggy-llvm-config.patch of Package ldc (Project home:ykoba)

diff -ur ldc-0.16.0-beta2-src.orig/cmake/Modules/FindLLVM.cmake ldc-0.16.0-beta2-src/cmake/Modules/FindLLVM.cmake
--- ldc-0.16.0-beta2-src.orig/cmake/Modules/FindLLVM.cmake	2015-10-10 14:45:09.000000000 +0200
+++ ldc-0.16.0-beta2-src/cmake/Modules/FindLLVM.cmake	2015-10-11 13:58:33.478728289 +0200
@@ -142,6 +142,7 @@
             ${_quiet_arg}
         )
         file(TO_CMAKE_PATH "${tmplibs}" tmplibs)
+        string(REGEX REPLACE "\\.a" ".so" tmplibs ${tmplibs})
         string(REGEX MATCHALL "${pattern}[^ ]+" LLVM_${var} ${tmplibs})
     endmacro()