Unverified Commit 83bfbf02 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #265490 from alyssais/compiler-rt-16-freebsd

llvmPackages_16.compiler-rt: fix FreeBSD build
parents 51888670 772a2502
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -121,7 +121,7 @@ stdenv.mkDerivation {
  # Hack around weird upsream RPATH bug
  postInstall = lib.optionalString (stdenv.hostPlatform.isDarwin) ''
    ln -s "$out/lib"/*/* "$out/lib"
  '' + lib.optionalString (useLLVM && !stdenv.hostPlatform.isWasm) ''
  '' + lib.optionalString (useLLVM && stdenv.hostPlatform.isLinux) ''
    ln -s $out/lib/*/clang_rt.crtbegin-*.o $out/lib/crtbegin.o
    ln -s $out/lib/*/clang_rt.crtend-*.o $out/lib/crtend.o
    # Note the history of crt{begin,end}S in previous versions of llvm in nixpkg: