From 0e292978fc112587f67654eed667b66912d4b6f4 Mon Sep 17 00:00:00 2001 From: Luca Toniolo <10792599+grandixximo@users.noreply.github.com> Date: Tue, 19 May 2026 13:23:45 +0800 Subject: [PATCH] axis: link _togl with -lGL (partially addresses #4034) _toglmodule.c calls raw GLX functions directly; libepoxy only provides runtime dispatch, not link-time GLX symbols. Without -lGL the resulting _togl.so has unresolved glX* symbols and fails to import on aarch64, where the transitive libepoxy -> libGL chain does not apply as it does on x86_64. Fixes the 'undefined symbol: glXDestroyContext' ImportError reported in #4034. Does not fix the AXIS segfault, which appears to originate in the UTM virgl/ANGLE GL stack on Apple Silicon and is unrelated. Backport of the togl hunk from ceed26dc72. --- src/emc/usr_intf/axis/Submakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emc/usr_intf/axis/Submakefile b/src/emc/usr_intf/axis/Submakefile index 72e590a959d..1d433fb14fd 100644 --- a/src/emc/usr_intf/axis/Submakefile +++ b/src/emc/usr_intf/axis/Submakefile @@ -17,7 +17,7 @@ $(EMCMODULE): $(call TOOBJS, $(EMCMODULESRCS)) ../lib/liblinuxcnc.a ../lib/libnm $(TOGLMODULE): $(call TOOBJS, $(TOGLMODULESRCS)) $(ECHO) Linking python module $(notdir $@) - $(Q)$(CC) $(LDFLAGS) -shared -o $@ $(TCL_CFLAGS) $^ -L/usr/X11R6/lib -lX11 -lepoxy -lXmu $(TCL_LIBS) + $(Q)$(CC) $(LDFLAGS) -shared -o $@ $(TCL_CFLAGS) $^ -L/usr/X11R6/lib -lX11 -lepoxy -lGL -lXmu $(TCL_LIBS) PYTARGETS += $(EMCMODULE) $(TOGLMODULE)