summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-08-31 06:59:59 +0100
committerThomas Haller <thaller@redhat.com>2023-08-31 08:40:50 +0200
commit052a97cb6554386c70d531e7c1b34a6afa1dbeb0 (patch)
tree12262cb60fd77382672afc06e9b370c4f8008aea
parent9aab12dff8e89b7da826c5c0826ef13c71963e28 (diff)
downloadlibnl-052a97cb6554386c70d531e7c1b34a6afa1dbeb0.tar.gz
Makefile.am: avoid use of non-portable echo arguments
This fixes tests with a non-bash shell as /bin/sh (in this case, dash) which does not support `echo -e`. echo itself is portable, but not echo with any arguments. Use `printf` instead. Fixes: d9a1e0ce9c95 ('build: add "check-local-build-headers" test target to build public headers') https://github.com/thom311/libnl/pull/360
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 29748d9b..545a78b3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1129,7 +1129,7 @@ EXTRA_DIST += \
%.build-headers-test.c: %
mkdir -p "$(dir $@)"
- echo -e "#include <$$(echo "$<" | sed 's|.*\<include/netlink/|netlink/|')>\nint main(int argc, char **argv) { return 0; }" > $@
+ printf "#include <$$(echo "$<" | sed 's|.*\<include/netlink/|netlink/|')>\nint main(int argc, char **argv) { return 0; }" > $@
%.build-headers-test.o: %.build-headers-test.c
$(COMPILE) -Wall -Werror -Wno-error=cpp -I$(srcdir)/include -I$(builddir)/include -c -o $@ $<