Skip the architecture dance.
Add X11BASE/lib to LDFLAGS

Index: Makefile
--- Makefile.orig
+++ Makefile
@@ -36,7 +36,7 @@ JSON2C ?= ./json2c.sh
 
 CFLAGS ?= -O2 -Wall -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast -Wno-strict-aliasing -Werror=strict-prototypes -Werror=old-style-definition -g -MMD $(INCLUDES)
 RCFLAGS ?=
-LDFLAGS ?=
+LDFLAGS ?= -L${X11BASE}/lib
 LIBS ?=
 
 CFLAGS_c :=
@@ -571,7 +571,7 @@ endif
 ifdef CONFIG_WINDOWS
     TARG_c := ezquake$(EZ_POSTFIX).exe
 else
-    TARG_c := ezquake-$(LSYS)-$(CPU)$(EZ_POSTFIX)
+    TARG_c := ezquake
 endif
 
 all: $(TARG_c)
