diff --git a/Formula/s/spirv-llvm-translator.rb b/Formula/s/spirv-llvm-translator.rb index c72ef93ac5418..7e8aa2869e3ce 100644 --- a/Formula/s/spirv-llvm-translator.rb +++ b/Formula/s/spirv-llvm-translator.rb @@ -29,6 +29,8 @@ def llvm def install ENV.append "LDFLAGS", "-Wl,-rpath,#{rpath(target: llvm.opt_lib)}" if OS.linux? system "cmake", "-S", ".", "-B", "build", + "-DBUILD_SHARED_LIBS=ON", + "-DCMAKE_INSTALL_RPATH=#{rpath}", "-DLLVM_BUILD_TOOLS=ON", "-DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=#{Formula["spirv-headers"].opt_prefix}", *std_cmake_args