Fix 64-bit cuneiform build
svn path=/nixpkgs/trunk/; revision=27402
This commit is contained in:
parent
d27a2ef6cf
commit
51fa598ba1
@ -28,8 +28,10 @@ rec {
|
|||||||
cmake .. -DCMAKE_BUILD_TYPE=debug -DCMAKE_INSTALL_PREFIX=$out -DDL_LIB=${libc}/lib
|
cmake .. -DCMAKE_BUILD_TYPE=debug -DCMAKE_INSTALL_PREFIX=$out -DDL_LIB=${libc}/lib
|
||||||
'') ["minInit" "addInputs" "doUnpack" "defEnsureDir"];
|
'') ["minInit" "addInputs" "doUnpack" "defEnsureDir"];
|
||||||
|
|
||||||
|
needLib64 = a.stdenv.system == "x86_64-linux";
|
||||||
|
|
||||||
postInstall = a.fullDepEntry(''
|
postInstall = a.fullDepEntry(''
|
||||||
patchelf --set-rpath $out/lib${if a.stdenv.gcc.gcc != null then ":${a.stdenv.gcc.gcc}/lib" else ""}:${a.imagemagick}/lib $out/bin/cuneiform
|
patchelf --set-rpath $out/lib${if needLib64 then "64" else ""}${if a.stdenv.gcc.gcc != null then ":${a.stdenv.gcc.gcc}/lib" else ""}${if a.stdenv.gcc.gcc != null && needLib64 then ":${a.stdenv.gcc.gcc}/lib64" else ""}:${a.imagemagick}/lib $out/bin/cuneiform
|
||||||
'') ["minInit" "addInputs" "doMakeInstall"];
|
'') ["minInit" "addInputs" "doMakeInstall"];
|
||||||
|
|
||||||
name = "cuneiform-" + version;
|
name = "cuneiform-" + version;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user