Skip to content
Snippets Groups Projects
Commit 77972376 authored by Brad King's avatar Brad King
Browse files

BUG: Fix bootstrap for Debian Almquist Shell

The Debian Almquist Shell (dash) provides minimal POSIX compliance
instead of the power of bash.  It converts literal '\n' to a real
newline even in a single-quoted string.  This works around the problem
by avoiding the literal.  We can no longer use HEREDOC.
parent a3275409
No related branches found
No related tags found
No related merge requests found
......@@ -672,7 +672,7 @@ int main(argc, argv)
int main(int argc, char* argv[])
#endif
{
printf("%d\n", (argv != 0));
printf("%d%c", (argv != 0), (char)0x0a);
return argc-1;
}
' > "${TMPFILE}.c"
......@@ -771,7 +771,7 @@ test: test.c
'>"Makefile"
echo '
#include <stdio.h>
int main(){ printf("1\n"); return 0; }
int main(){ printf("1%c", (char)0x0a); return 0; }
' > "test.c"
cmake_original_make_flags="${cmake_make_flags}"
if [ "x${cmake_parallel_make}" != "x" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment