about summary refs log tree commit diff
path: root/pkgs/development/compilers
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-06-23 12:08:32 -0500
committerWill Dietz <w@wdtz.org>2018-06-23 15:53:44 -0500
commitae78847b50fc28ac9c219d7d35e89290107f8fae (patch)
treef1265cee5b2a320285eae99ef33c5ed9d021d5d1 /pkgs/development/compilers
parente4fffae0cfa8d3b5c1337c1c07573ee8e8eb7aaa (diff)
downloadnixlib-ae78847b50fc28ac9c219d7d35e89290107f8fae.tar
nixlib-ae78847b50fc28ac9c219d7d35e89290107f8fae.tar.gz
nixlib-ae78847b50fc28ac9c219d7d35e89290107f8fae.tar.bz2
nixlib-ae78847b50fc28ac9c219d7d35e89290107f8fae.tar.lz
nixlib-ae78847b50fc28ac9c219d7d35e89290107f8fae.tar.xz
nixlib-ae78847b50fc28ac9c219d7d35e89290107f8fae.tar.zst
nixlib-ae78847b50fc28ac9c219d7d35e89290107f8fae.zip
clang_39: fix w/musl (same as clang_4)
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r--pkgs/development/compilers/llvm/3.9/clang/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/compilers/llvm/3.9/clang/default.nix b/pkgs/development/compilers/llvm/3.9/clang/default.nix
index 1f6d80ab3be9..f597c559dba6 100644
--- a/pkgs/development/compilers/llvm/3.9/clang/default.nix
+++ b/pkgs/development/compilers/llvm/3.9/clang/default.nix
@@ -29,6 +29,8 @@ let
     postPatch = ''
       sed -i -e 's/Args.hasArg(options::OPT_nostdlibinc)/true/' lib/Driver/Tools.cpp
       sed -i -e 's/DriverArgs.hasArg(options::OPT_nostdlibinc)/true/' lib/Driver/ToolChains.cpp
+    '' + stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
+      sed -i -e 's/lgcc_s/lgcc_eh/' lib/Driver/Tools.cpp
     '';
 
     outputs = [ "out" "lib" "python" ];