Skip to content

Commit 3bb4fe9

Browse files
authored
fix: unable to make install in termux, because of file system redirection (#908)
1 parent cc332cc commit 3bb4fe9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ ifdef BUILD_UNIVERSAL
2020
# https://cmake.org/cmake/help/latest/envvar/CMAKE_OSX_ARCHITECTURES.html
2121
export CMAKE_OSX_ARCHITECTURES = arm64;x86_64
2222
endif
23-
23+
else ifeq ($(shell test -n "$$PREFIX" && echo "$$PREFIX" | grep -q "/data/data/com.termux" && echo "termux"),termux)
24+
prefix ?= $(PREFIX)
2425
else # for Linux
2526
prefix ?= $(DESTDIR)/usr
2627
endif

0 commit comments

Comments
 (0)