ghostscript: fix cross for armv7l (#363237)

This commit is contained in:
misuzu
2024-12-13 13:12:15 +02:00
committed by GitHub

View File

@@ -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/