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.
This commit is contained in:
parent
a32754093d
commit
7797237629
@ -672,7 +672,7 @@ int main(argc, argv)
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
printf("%d\n", (argv != 0));
|
printf("%d%c", (argv != 0), (char)0x0a);
|
||||||
return argc-1;
|
return argc-1;
|
||||||
}
|
}
|
||||||
' > "${TMPFILE}.c"
|
' > "${TMPFILE}.c"
|
||||||
@ -771,7 +771,7 @@ test: test.c
|
|||||||
'>"Makefile"
|
'>"Makefile"
|
||||||
echo '
|
echo '
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
int main(){ printf("1\n"); return 0; }
|
int main(){ printf("1%c", (char)0x0a); return 0; }
|
||||||
' > "test.c"
|
' > "test.c"
|
||||||
cmake_original_make_flags="${cmake_make_flags}"
|
cmake_original_make_flags="${cmake_make_flags}"
|
||||||
if [ "x${cmake_parallel_make}" != "x" ]; then
|
if [ "x${cmake_parallel_make}" != "x" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user