From b85db7b6255ca6993903012ffb5881d666d57af6 Mon Sep 17 00:00:00 2001 From: fxliang Date: Tue, 2 Jul 2024 15:37:56 +0800 Subject: [PATCH] fix: unable to make install in termux, because of file system redirection --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 58784112a2..813895f682 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,8 @@ ifdef BUILD_UNIVERSAL # https://cmake.org/cmake/help/latest/envvar/CMAKE_OSX_ARCHITECTURES.html export CMAKE_OSX_ARCHITECTURES = arm64;x86_64 endif - +else ifeq ($(shell test -n "$$PREFIX" && echo "$$PREFIX" | grep -q "/data/data/com.termux" && echo "termux"),termux) +prefix ?= $(PREFIX) else # for Linux prefix ?= $(DESTDIR)/usr endif