Skip to content

Commit 481ec6e

Browse files
Use printf instead of echo -e in Makefile.configure
echo -e is not POSIX-compliant, but printf is supposed to interpret escaped sequences like \n. Fixes: #34 Signed-off-by: Thiago Macieira <[email protected]>
1 parent c88913e commit 481ec6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile.configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ configure: $(foreach it,$(ALLTESTS),check-$(it))
2222

2323
check-%:
2424
@echo $(subst check-,,$@)-tested := 1 $(OUT)
25-
$(if $(V),,@)if echo -e "$($(subst check-,PROGRAM-,$@))" | \
25+
$(if $(V),,@)if printf "$($(subst check-,PROGRAM-,$@))" | \
2626
$(CC) -xc $($(subst check-,CCFLAGS-,$@)) -o /dev/null - $(if $(V),,>/dev/null 2>&1); \
2727
then \
2828
echo $(subst check-,,$@)-pass := 1 $(OUT); \

0 commit comments

Comments
 (0)