From 3bb4fe9f69a7e9be812b9952ed037c4e5a43f9fb Mon Sep 17 00:00:00 2001 From: fxliang Date: Wed, 3 Jul 2024 09:33:53 +0800 Subject: [PATCH] fix: unable to make install in termux, because of file system redirection (#908) --- 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