git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #46578 from costrouc/costrouc/xnd-linker

libxnd, libndtypes: refactor add support for darwin

commit59be6689faa075ce80a1456439fb387a2befbfcb authorJohn Ericson <subscribe@JohnEricson.me> dateThu 13 Sep 2018, 15:37 (8 years ago) parente34a9ff9666881
2 files changed+7−6
pkgs/development/libraries/libndtypes/default.nix+4−2 pkgs/development/libraries/libxnd/default.nix+3−4
pkgs/development/libraries/libndtypes/default.nix+4−2
@@ -14,7 +14,9 @@ stdenv.mkDerivation rec {
1414 sha256 = "0dpvv13mrid8l5zkjlz18qvirz3nr0v98agx9bcvkqbiahlfgjli";
1515 };
1616
17− makeFlags = [ "CONFIGURE_LDFLAGS='-shared'" ];
17+ # Override linker with cc (symlink to either gcc or clang)
18+ # Library expects to use cc for linking
19+ configureFlags = [ "LD=${stdenv.cc.targetPrefix}cc" ];
1820
1921 meta = {
2022 description = "Dynamic types for data description and in-memory computations";
@@ -22,4 +24,4 @@ stdenv.mkDerivation rec {
2224 license = lib.licenses.bsdOriginal;
2325 maintainers = with lib.maintainers; [ costrouc ];
2426 };
25−}
27+}
pkgs/development/libraries/libxnd/default.nix+3−4
@@ -17,10 +17,9 @@ stdenv.mkDerivation rec {
1717
1818 buildInputs = [ libndtypes ];
1919
20− configureFlags = [ "XND_INCLUDE='-I${libndtypes}/include'"
21− "XND_LINK='-L${libndtypes}/lib'" ];
22−
23− makeFlags = [ "CONFIGURE_LDFLAGS='-shared'" ];
20+ # Override linker with cc (symlink to either gcc or clang)
21+ # Library expects to use cc for linking
22+ configureFlags = [ "LD=${stdenv.cc.targetPrefix}cc" ];
2423
2524 meta = {
2625 description = "General container that maps a wide range of Python values directly to memory";