summaryrefslogtreecommitdiffstats
path: root/shell-term-fm
diff options
context:
space:
mode:
authorIsmael Luceno2021-06-29 19:12:50 +0200
committerIsmael Luceno2021-06-29 19:13:39 +0200
commitaed074091bc20de5832e6b5516ceae06495a744a (patch)
treead7077bc9c4e1b6749d8481d523638d50b9a1327 /shell-term-fm
parent0199c42497121bde9f76d74a98ed635299175601 (diff)
nnn: Use musl-fts when building against musl
Diffstat (limited to 'shell-term-fm')
-rwxr-xr-xshell-term-fm/nnn/BUILD4
-rwxr-xr-xshell-term-fm/nnn/DEPENDS5
-rw-r--r--shell-term-fm/nnn/HISTORY3
3 files changed, 12 insertions, 0 deletions
diff --git a/shell-term-fm/nnn/BUILD b/shell-term-fm/nnn/BUILD
index a836cd1fbf..03bf234e1e 100755
--- a/shell-term-fm/nnn/BUILD
+++ b/shell-term-fm/nnn/BUILD
@@ -1 +1,5 @@
+export LDLIBS= &&
+if is_depends_enabled "$SPELL" musl-fts; then
+ LDLIBS+=' -lfts'
+fi &&
make CFLAGS_OPTIMIZATION=
diff --git a/shell-term-fm/nnn/DEPENDS b/shell-term-fm/nnn/DEPENDS
index c7e8a3f2fe..abb8d0efc9 100755
--- a/shell-term-fm/nnn/DEPENDS
+++ b/shell-term-fm/nnn/DEPENDS
@@ -1,3 +1,8 @@
+case "$HOST" in
+ (*-musl)
+ depends musl-fts
+ ;;
+esac &&
depends ncurses &&
suggest_depends TEXT-EDITOR "" "" "to open/edit text files" &&
diff --git a/shell-term-fm/nnn/HISTORY b/shell-term-fm/nnn/HISTORY
index 9a1c6e21a7..164d718bc2 100644
--- a/shell-term-fm/nnn/HISTORY
+++ b/shell-term-fm/nnn/HISTORY
@@ -1,3 +1,6 @@
+2021-06-29 Ismael Luceno <ismael@sourcemage.org>
+ * BUILD, DEPENDS: use musl-fts when building against musl
+
2021-06-03 Florian Franzmann <bwlf@bandrate.org>
* DETAILS: version 4.1.1