mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
ghostscript: fix cross for armv7l (#363237)
This commit is contained in:
@@ -112,6 +112,14 @@ stdenv.mkDerivation rec {
|
||||
sed "s@if ( test -f \$(INCLUDE)[^ ]* )@if ( true )@; s@INCLUDE=/usr/include@INCLUDE=/no-such-path@" -i base/unix-aux.mak
|
||||
sed "s@^ZLIBDIR=.*@ZLIBDIR=${zlib.dev}/include@" -i configure.ac
|
||||
|
||||
# Sidestep a bug in autoconf-2.69 that sets the compiler for all checks to
|
||||
# $CXX after the part for the vendored copy of tesseract.
|
||||
# `--without-tesseract` is already passed to the outer ./configure, here we
|
||||
# make sure it is also passed to its recursive invocation for buildPlatform
|
||||
# checks when cross-compiling.
|
||||
substituteInPlace configure.ac \
|
||||
--replace-fail "--without-x" "--without-x --without-tesseract"
|
||||
|
||||
autoconf
|
||||
'' + lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||
export DARWIN_LDFLAGS_SO_PREFIX=$out/lib/
|
||||
|
||||
Reference in New Issue
Block a user