summary refs log tree commit diff
path: root/pkgs/development/libraries/libndtypes
diff options
context:
space:
mode:
authorChris Ostrouchov <chris.ostrouchov@gmail.com>2018-09-12 15:03:22 -0400
committerChris Ostrouchov <chris.ostrouchov@gmail.com>2018-09-13 15:20:31 -0400
commit96668812f35267c34c83265053f951a777229866 (patch)
tree205d16c8d7c00ad9ad99567657e11d42a2892a62 /pkgs/development/libraries/libndtypes
parent5a944e422390849bd81a12065e8aa53996744568 (diff)
downloadnixpkgs-96668812f35267c34c83265053f951a777229866.tar
nixpkgs-96668812f35267c34c83265053f951a777229866.tar.gz
nixpkgs-96668812f35267c34c83265053f951a777229866.tar.bz2
nixpkgs-96668812f35267c34c83265053f951a777229866.tar.lz
nixpkgs-96668812f35267c34c83265053f951a777229866.tar.xz
nixpkgs-96668812f35267c34c83265053f951a777229866.tar.zst
nixpkgs-96668812f35267c34c83265053f951a777229866.zip
libndtypes: refactor change linker support darwin
Diffstat (limited to 'pkgs/development/libraries/libndtypes')
-rw-r--r--pkgs/development/libraries/libndtypes/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libndtypes/default.nix b/pkgs/development/libraries/libndtypes/default.nix
index 685518efbd2..925154e1d45 100644
--- a/pkgs/development/libraries/libndtypes/default.nix
+++ b/pkgs/development/libraries/libndtypes/default.nix
@@ -14,7 +14,9 @@ stdenv.mkDerivation rec {
     sha256 = "0dpvv13mrid8l5zkjlz18qvirz3nr0v98agx9bcvkqbiahlfgjli";
   };
 
-  makeFlags = [ "CONFIGURE_LDFLAGS='-shared'" ];
+  # Override linker with cc (symlink to either gcc or clang)
+  # Library expects to use cc for linking
+  configureFlags = [ "LD=${stdenv.cc.targetPrefix}cc" ];
 
   meta = {
     description = "Dynamic types for data description and in-memory computations";
@@ -22,4 +24,4 @@ stdenv.mkDerivation rec {
     license = lib.licenses.bsdOriginal;
     maintainers = with lib.maintainers; [ costrouc ];
   };
-}
\ No newline at end of file
+}