diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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: |
