[gnome-build-meta/abderrahim/cross-compile-fix: 61/62] project.conf: set autotools cross-compile options globally



commit 1afc7002eb40c41eb6534e70a179105760b07593
Author: Abderrahim Kitouni <akitouni gnome org>
Date:   Fri Dec 21 07:23:41 2018 +0100

    project.conf: set autotools cross-compile options globally

 elements/core-deps/mozjs52.bst | 8 +-------
 project.conf                   | 9 ++++++++-
 2 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/elements/core-deps/mozjs52.bst b/elements/core-deps/mozjs52.bst
index fa9dcba9..24dfbdc1 100644
--- a/elements/core-deps/mozjs52.bst
+++ b/elements/core-deps/mozjs52.bst
@@ -13,14 +13,8 @@ depends:
   junction: freedesktop-sdk.bst
 variables:
   mozjs_target: ''
-  (?):
-    - arch == "i686":
-        mozjs_target: "--host=i686-unknown-linux-gnu"
-    - arch == "arm":
-        mozjs_target: "--host=arm-unknown-linux-gnueabi"
   command-subdir: _build
-  conf-local: --enable-posix-nspr-emulation --with-system-zlib --with-intl-api --disable-jemalloc 
%{mozjs_target}
-    AUTOCONF=autoconf
+  conf-local: --enable-posix-nspr-emulation --with-system-zlib --with-intl-api --disable-jemalloc 
AUTOCONF=autoconf
   conf-cmd: '%{build-root}/js/src/configure'
   # not a real autotools project
   autogen: ''
diff --git a/project.conf b/project.conf
index f52586e6..75f7a58b 100644
--- a/project.conf
+++ b/project.conf
@@ -98,7 +98,14 @@ environment:
 elements:
   autotools:
     variables:
-      conf-extra: --disable-static --disable-Werror
+      target: ''
+      (?):
+      - arch == "i686":
+          target: --host=i686-unknown-linux-gnu
+      - arch == "arm":
+          target: --host=arm-unknown-linux-gnueabi
+
+      conf-global: --disable-static --disable-Werror %{target}
 
       # Temporary workaround to avoid regenerating existing
       # configure scripts when building tarballs.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]