Hi,

after the update to 1.5.2 libepoxy fails to link on loongson with:
gl_generated_dispatch.c:(.text+0x88): relocation truncated to fit: 
R_MIPS_CALL16 against `epoxy_is_desktop_gl'
and other similar errors.

This fixes it. ok ?

Index: Makefile
===================================================================
RCS file: /cvs/OpenBSD/xenocara/lib/libepoxy/Makefile,v
retrieving revision 1.7
diff -u -p -u -r1.7 Makefile
--- Makefile    25 May 2018 06:24:59 -0000      1.7
+++ Makefile    25 May 2018 20:00:34 -0000
@@ -13,6 +13,10 @@ INCSDIR=     ${X11BASE}/include/epoxy
 
 CFLAGS+= -std=gnu99
 
+.if ${MACHINE_ARCH} == "mips64el"
+PICFLAG+= -mxgot
+.endif
+
 CPPFLAGS+= \
        -I${.CURDIR} \
        -I${.CURDIR}/generated/include \

-- 
Matthieu Herrb

Reply via email to