hwloc: Add -L' for numactl in
libhwloc.la'.
svn path=/nixpkgs/trunk/; revision=34306
This commit is contained in:
parent
781666f649
commit
6bba2234c4
@ -19,6 +19,20 @@ stdenv.mkDerivation rec {
|
||||
++ (stdenv.lib.optionals (!stdenv.isCygwin) [ cairo libX11 ])
|
||||
++ (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;
|
||||
|
||||
meta = {
|
||||
|
Loading…
Reference in New Issue
Block a user