hwloc: Add -L' for numactl in libhwloc.la'.

svn path=/nixpkgs/trunk/; revision=34306
This commit is contained in:
Ludovic Courtès 2012-05-31 16:45:37 +00:00
parent 781666f649
commit 6bba2234c4

View File

@ -19,6 +19,20 @@ stdenv.mkDerivation rec {
++ (stdenv.lib.optionals (!stdenv.isCygwin) [ cairo libX11 ]) ++ (stdenv.lib.optionals (!stdenv.isCygwin) [ cairo libX11 ])
++ (stdenv.lib.optionals stdenv.isLinux [ pciutils numactl ])); ++ (stdenv.lib.optionals stdenv.isLinux [ pciutils numactl ]));
postInstall =
stdenv.lib.optionalString (stdenv.isLinux && numactl != null)
'' if [ -d "${numactl}/lib64" ]
then
numalibdir="${numactl}/lib64"
else
numalibdir="${numactl}/lib"
test -d "$numalibdir"
fi
sed -i "$out/lib/libhwloc.la" \
-e "s|-lnuma|-L$numalibdir -lnuna|g"
'';
doCheck = true; doCheck = true;
meta = { meta = {