On Sun, Dec 08, 2019 at 05:05:34PM +0000, Visa Hankala wrote:
> Date: Sun, 8 Dec 2019 17:05:34 +0000
> From: Visa Hankala <v...@openbsd.org>
> To: ports@openbsd.org
> Subject: Re: Fails to build textproc/mupdf on mips64el/loongson
> 
> Does this patch help? By setting HAVE_OBJCOPY=no the build generates
> C files as intermediaries.
> 
> Index: Makefile
> ===================================================================
> RCS file: ports/textproc/mupdf/Makefile,v
> retrieving revision 1.92
> diff -u -p -r1.92 Makefile
> --- Makefile  17 Sep 2019 09:22:51 -0000      1.92
> +++ Makefile  8 Dec 2019 16:43:47 -0000
> @@ -72,6 +72,11 @@ WANTLIB += GL glut
>  LIB_DEPENDS +=       graphics/freeglut
>  .endif
>  
> +# ld.bfd -r -b binary does not produce correct type of object.
> +.if (${MACHINE_ARCH} == "mips64" || ${MACHINE_ARCH} == "mips64el")
> +MAKE_FLAGS +=        HAVE_OBJCOPY=no
> +.endif
> +
>  post-install:
>       ${INSTALL_DATA_DIR} ${PREFIX}/share/{applications,pixmaps}
>       ${INSTALL_DATA} ${FILESDIR}/mupdf.xpm ${PREFIX}/share/pixmaps/
> 

(CCing maintainer Stuart.)

This actually works!  Thanks Visa!

Attachment: signature.asc
Description: PGP signature

Reply via email to