Busybox chmod does not support --reference. This simple fix makes it
build with busybox chmod instead of util-linux.
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
---
Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index 0a16f96..b9587b0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -151,7 +151,7 @@ pathconfig.h: .pathconfig.h.pathsubst.stamp
@mkdir -p $$(dirname '$@')
@echo "$(SED) -e '...' $*.pathsubst >$*"
@$(SED) -e '$(pathsubst_RULES)' '$<' >'$@.tmp'
- @-chmod --reference='$<' '$@.tmp'
+ @-chmod $$(stat -c %a '$<') '$@.tmp'
@if cmp -s '$@.tmp' '$*'; then \
echo "... no changes, reusing old version"; \
rm -f '$@.tmp'; \
--
1.7.9.2