* ghostscript: force the use of the -fpic flag, otherwise it doesn't
build on x86_64-linux. svn path=/nixpkgs/trunk/; revision=12380
This commit is contained in:
parent
f1d9c0a852
commit
8734e020db
|
@ -6,7 +6,6 @@ preConfigure() {
|
|||
rm -rf ijs/ltmain.sh
|
||||
}
|
||||
|
||||
installPhase=installPhase
|
||||
installPhase() {
|
||||
make install install-so install-data install-doc install-man
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@ assert x11Support -> x11 != null;
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ghostscript-8.62.0";
|
||||
|
||||
builder = ./builder.sh;
|
||||
|
||||
src = fetchurl {
|
||||
|
@ -25,15 +26,16 @@ stdenv.mkDerivation rec {
|
|||
# ... add other fonts here
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libjpeg libpng zlib
|
||||
(if x11Support then x11 else null)
|
||||
];
|
||||
buildInputs = [libjpeg libpng zlib]
|
||||
++ stdenv.lib.optional x11Support x11;
|
||||
|
||||
configureFlags = "
|
||||
--disable-static
|
||||
${if x11Support then "--with-x" else "--without-x"}
|
||||
";
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-fpic";
|
||||
|
||||
patches = [
|
||||
|
||||
# This patch is required to make Ghostscript at least build in a
|
||||
|
|
Loading…
Reference in a new issue