libxnd: refactor change linker support darwin

This commit is contained in:
Chris Ostrouchov 2018-09-12 15:03:02 -04:00
parent a60e79425b
commit 5a944e4223
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573

View File

@ -17,10 +17,9 @@ stdenv.mkDerivation rec {
buildInputs = [ libndtypes ];
configureFlags = [ "XND_INCLUDE='-I${libndtypes}/include'"
"XND_LINK='-L${libndtypes}/lib'" ];
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 = "General container that maps a wide range of Python values directly to memory";