mozconfig-v6.48.eclass: Ensure --host is always set, bug 590498
authorIan Stakenvicius <axs@gentoo.org>
Thu, 8 Sep 2016 22:19:26 +0000 (18:19 -0400)
committerIan Stakenvicius <axs@gentoo.org>
Thu, 8 Sep 2016 22:20:06 +0000 (18:20 -0400)
eclass/mozconfig-v6.48.eclass

index e2d893432c4e453db0b87582cf85bfc801c278ec..17b41b96f731da852a6894f57ebc7d81b9962b75 100644 (file)
@@ -329,11 +329,9 @@ mozconfig_config() {
        # Instead of the standard --build= and --host=, mozilla uses --host instead
        # of --build, and --target intstead of --host.
        # Note, mozilla also has --build but it does not do what you think it does.
+       # Set both --target and --host as mozilla uses python to guess values otherwise
        mozconfig_annotate '' --target="${CHOST}"
-       if [[ "${CBUILD:-${CHOST}}" != "${CHOST}" ]]; then
-               # set --host only when cross-compiling
-               mozconfig_annotate '' --host="${CBUILD:-${CHOST}}"
-       fi
+       mozconfig_annotate '' --host="${CBUILD:-${CHOST}}"
 
        mozconfig_use_enable pulseaudio