File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -422,11 +422,12 @@ sed -i'.bak' "s/^\(Requires:.*\)/\1 cairo-gobject pangocairo libxml-2.0/" librsv
422422sed -i' .bak' " /crate-type = /s/, \" rlib\" //" librsvg-c/Cargo.toml
423423# We build Cairo with `-Dzlib=disabled`, which implicitly disables the PDF/PostScript surface backends
424424sed -i' .bak' " /cairo-rs = /s/ \" pdf\" , \" ps\" ,//" {librsvg-c,rsvg}/Cargo.toml
425+ # https://gitlab.gnome.org/GNOME/librsvg/-/issues/996
426+ $CURL https://raw.githubusercontent.com/libvips/build-win64-mxe/master/build/patches/librsvg-2-issue-996.patch | patch -p1
425427# Remove the --static flag from the PKG_CONFIG env since Rust does not
426428# support that. Build with PKG_CONFIG_ALL_STATIC=1 instead.
427429PKG_CONFIG=${PKG_CONFIG/ --static/ } ./configure --host=${CHOST} --prefix=${TARGET} --enable-static --disable-shared --disable-dependency-tracking \
428- --disable-introspection --disable-tools --disable-pixbuf-loader --disable-nls --without-libiconv-prefix --without-libintl-prefix \
429- ${DARWIN: +--disable-Bsymbolic}
430+ --disable-introspection --disable-pixbuf-loader ${DARWIN: +--disable-Bsymbolic}
430431# Skip build of rsvg-convert
431432PKG_CONFIG_ALL_STATIC=1 make install-strip bin_SCRIPTS=
432433
You can’t perform that action at this time.
0 commit comments