Add support for building in Termux-Android in meson

- introduce cross perl
- workaround for the android linker
This commit is contained in:
ailin-nemui 2020-05-27 22:28:07 +02:00
commit 01ecb879a6
12 changed files with 167 additions and 46 deletions

View file

@ -281,8 +281,8 @@ static void exec_show_list(void)
static void process_exec(PROCESS_REC *rec, const char *cmd)
{
const char *shell_args[4] = { "/bin/sh", "-c", NULL, NULL };
char **args;
const char *shell_args[4] = { FHS_PREFIX "/bin/sh", "-c", NULL, NULL };
char **args;
int in[2], out[2];
int n;
@ -341,7 +341,7 @@ static void process_exec(PROCESS_REC *rec, const char *cmd)
if (rec->shell) {
execvp(shell_args[0], (char **) shell_args);
fprintf(stderr, "Exec: /bin/sh: %s\n", g_strerror(errno));
fprintf(stderr, "Exec: " FHS_PREFIX "/bin/sh: %s\n", g_strerror(errno));
} else {
args = g_strsplit(cmd, " ", -1);
execvp(args[0], args);