preload-hacks: Some patches to make it work.
[termux-packages] / packages / cmake / Source-cmExecProgramCommand.cxx.patch
1 diff -u -r ../cmake-3.10.1/Source/cmExecProgramCommand.cxx ./Source/cmExecProgramCommand.cxx
2 --- ../cmake-3.10.1/Source/cmExecProgramCommand.cxx 2017-12-13 14:25:23.000000000 +0100
3 +++ ./Source/cmExecProgramCommand.cxx 2017-12-15 12:18:37.696103242 +0100
4 @@ -205,7 +205,7 @@
5 }
6 fflush(stdout);
7 fflush(stderr);
8 - const char* cmd[] = { "/bin/sh", "-c", command, nullptr };
9 + const char* cmd[] = { "@TERMUX_PREFIX@/bin/sh", "-c", command, nullptr };
10 cmsysProcess_SetCommand(cp, cmd);
11 #endif
12