diff options
author | Sam James <sam@gentoo.org> | 2023-08-31 05:59:59 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2023-08-31 06:40:50 (GMT) |
commit | 052a97cb6554386c70d531e7c1b34a6afa1dbeb0 (patch) | |
tree | 12262cb60fd77382672afc06e9b370c4f8008aea | |
parent | 9aab12dff8e89b7da826c5c0826ef13c71963e28 (diff) | |
download | libnl-052a97cb6554386c70d531e7c1b34a6afa1dbeb0.zip libnl-052a97cb6554386c70d531e7c1b34a6afa1dbeb0.tar.gz libnl-052a97cb6554386c70d531e7c1b34a6afa1dbeb0.tar.bz2 |
Makefile.am: avoid use of non-portable echo argumentsmain
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.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 29748d9..545a78b 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 $@ $< |