Commit b4f719b0 authored by Christian Hergert's avatar Christian Hergert
Browse files

autotools: give configure and make a stdin pipe

Sometimes libtool wants stdin (doing things like <0) so we need to pass in
a valid stdin rather than /dev/null.
parent a1e30dda
......@@ -102,6 +102,11 @@ create_launcher (IdeAutotoolsMakeStage *self,
if (NULL == (launcher = ide_build_pipeline_create_launcher (pipeline, error)))
return NULL;
ide_subprocess_launcher_set_flags (launcher,
G_SUBPROCESS_FLAGS_STDIN_PIPE |
G_SUBPROCESS_FLAGS_STDOUT_PIPE |
G_SUBPROCESS_FLAGS_STDERR_PIPE);
ide_subprocess_launcher_push_argv (launcher, self->make);
/* Force disable previous V=1 that might be set by environment
......
......@@ -174,11 +174,14 @@ register_configure_stage (IdeAutotoolsPipelineAddin *self,
g_assert (IDE_IS_AUTOTOOLS_PIPELINE_ADDIN (self));
g_assert (IDE_IS_BUILD_PIPELINE (pipeline));
launcher = ide_build_pipeline_create_launcher (pipeline, error);
if (launcher == NULL)
if (NULL == (launcher = ide_build_pipeline_create_launcher (pipeline, error)))
return FALSE;
ide_subprocess_launcher_set_flags (launcher,
G_SUBPROCESS_FLAGS_STDIN_PIPE |
G_SUBPROCESS_FLAGS_STDOUT_PIPE |
G_SUBPROCESS_FLAGS_STDERR_PIPE);
configure_path = ide_build_pipeline_build_srcdir_path (pipeline, "configure", NULL);
ide_subprocess_launcher_push_argv (launcher, configure_path);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment