summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIsmael Luceno2022-01-16 14:31:54 +0100
committerIsmael Luceno2022-01-16 14:31:54 +0100
commit733c3d35c3ecc7e5e272c01bc8652861fe9faa5d (patch)
tree3b6aeb81d2ceced2df16d3d9d791548db70dd8c1
parenteafcc6050911a7fa58f2865ab8ed20f9f0691976 (diff)
rc: Fix build against musl
-rwxr-xr-xshell-term-fm/rc/BUILD6
-rw-r--r--shell-term-fm/rc/HISTORY3
2 files changed, 9 insertions, 0 deletions
diff --git a/shell-term-fm/rc/BUILD b/shell-term-fm/rc/BUILD
index bbfbee5f76..c8013e258c 100755
--- a/shell-term-fm/rc/BUILD
+++ b/shell-term-fm/rc/BUILD
@@ -1,2 +1,8 @@
+case "$HOST" in
+ (*-musl)
+ # non-standard function name expected by rc
+ CFLAGS+=' -D__va_copy=va_copy'
+ ;;
+esac &&
OPTS="--bindir=/bin $OPTS" &&
default_build
diff --git a/shell-term-fm/rc/HISTORY b/shell-term-fm/rc/HISTORY
index 27fb85d79e..534de287fd 100644
--- a/shell-term-fm/rc/HISTORY
+++ b/shell-term-fm/rc/HISTORY
@@ -1,3 +1,6 @@
+2022-01-08 Ismael Luceno <ismael@iodev.co.uk>
+ * BUILD: Fixed build against musl libc
+
2011-05-17 Ismael Luceno <ismael@sourcemage.org>
* BUILD: install into /bin