ghostscript: fix cross for armv7l (#363237)

authored by misuzu.tngl.sh and committed by GitHub bc812fb4 41e34e0c

+8
+8
pkgs/by-name/gh/ghostscript/package.nix
··· 112 112 sed "s@if ( test -f \$(INCLUDE)[^ ]* )@if ( true )@; s@INCLUDE=/usr/include@INCLUDE=/no-such-path@" -i base/unix-aux.mak 113 113 sed "s@^ZLIBDIR=.*@ZLIBDIR=${zlib.dev}/include@" -i configure.ac 114 114 115 + # Sidestep a bug in autoconf-2.69 that sets the compiler for all checks to 116 + # $CXX after the part for the vendored copy of tesseract. 117 + # `--without-tesseract` is already passed to the outer ./configure, here we 118 + # make sure it is also passed to its recursive invocation for buildPlatform 119 + # checks when cross-compiling. 120 + substituteInPlace configure.ac \ 121 + --replace-fail "--without-x" "--without-x --without-tesseract" 122 + 115 123 autoconf 116 124 '' + lib.optionalString stdenv.hostPlatform.isDarwin '' 117 125 export DARWIN_LDFLAGS_SO_PREFIX=$out/lib/