[gnome-builder] autotools: include --host= when running configure
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] autotools: include --host= when running configure
- Date: Fri, 24 Apr 2015 00:16:07 +0000 (UTC)
commit ff020d4bd45199b8ec7bf70b3e6e235208b39dc3
Author: Christian Hergert <christian hergert me>
Date: Thu Apr 23 17:16:01 2015 -0700
autotools: include --host= when running configure
This helps when we cross-compile using other toolchains such as mingw.
libide/autotools/ide-autotools-build-task.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libide/autotools/ide-autotools-build-task.c b/libide/autotools/ide-autotools-build-task.c
index ce6f541..29ab01d 100644
--- a/libide/autotools/ide-autotools-build-task.c
+++ b/libide/autotools/ide-autotools-build-task.c
@@ -438,6 +438,8 @@ gen_configure_argv (IdeAutotoolsBuildTask *self,
WorkerState *state)
{
IdeAutotoolsBuildTaskPrivate *priv;
+ IdeDevice *device;
+ const gchar *system_type;
GKeyFile *configs[2];
GPtrArray *ar;
GHashTable *ht;
@@ -510,6 +512,10 @@ gen_configure_argv (IdeAutotoolsBuildTask *self,
g_free (prefix);
}
+ device = ide_autotools_build_task_get_device (self);
+ system_type = ide_device_get_system_type (device);
+ g_ptr_array_add (ar, g_strdup_printf ("--host=%s", system_type));
+
g_ptr_array_add (ar, NULL);
g_hash_table_unref (ht);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]