From c9bed3541401d78e5e0a3673a138f81ba66023fc Mon Sep 17 00:00:00 2001 From: Welpyes Date: Thu, 25 Sep 2025 12:29:36 +0800 Subject: yeah --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c283518..b80f809 100644 --- a/Makefile +++ b/Makefile @@ -34,12 +34,17 @@ LDFLAGS ?= -Wl,-O1 -pie # libraries LDLIBS ?= -lX11 -lXinerama -lXcursor -# prefer pkg-confgi +# prefer pkg-config ifneq ($(shell $(PKG_CONFIG) --exists x11 xinerama xcursor && echo yes),) CPPFLAGS += $(shell $(PKG_CONFIG) --cflags x11 xinerama xcursor) LDLIBS := $(shell $(PKG_CONFIG) --libs x11 xinerama xcursor) endif +# Termux detection for libandroid-wordexp +ifneq ($(shell if [ "$$PREFIX" = "/data/data/com.termux/files/usr" ]; then echo yes; fi),) +LDLIBS += -landroid-wordexp +endif + .PHONY: all clean install uninstall clangd .SUFFIXES: -- cgit v1.2.3