diff mbox

0007-Fix-pass-a-HOST_ARCH-when-cross-compiling.patch

Message ID 20111214180717.GU28260@dream.aleph1.co.uk
State Accepted
Headers show

Commit Message

Wookey Dec. 14, 2011, 6:07 p.m. UTC
From f33ec4441e19c3f21e7dd4891ff6f0fbbed4c3e8 Mon Sep 17 00:00:00 2001
From: Hector Oron <hector.oron@toby-churchill.com>
Date: Mon, 12 Dec 2011 19:21:28 +0000
Subject: [PATCH 07/17] Fix pass -a HOST_ARCH when cross compiling

Signed-off-by: Hector Oron <hector.oron@toby-churchill.com>
---
 lib/Sbuild/Build.pm |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/lib/Sbuild/Build.pm b/lib/Sbuild/Build.pm
index 1eb099f..cdb52cf 100644
--- a/lib/Sbuild/Build.pm
+++ b/lib/Sbuild/Build.pm
@@ -1423,8 +1423,8 @@  sub build {
 	    $self->get_conf('BUILD_ENV_CMND'));
     push (@{$buildcmd}, 'dpkg-buildpackage');
 
-    if ($self->get_conf('BUILD_ARCH') ne $self->get_conf('BUILD_ARCH')) {
-	push (@{$buildcmd}, '-a' . $self->get_conf('BUILD_ARCH'));
+    if ($self->get_conf('HOST_ARCH') ne $self->get_conf('BUILD_ARCH')) {
+	push (@{$buildcmd}, '-a' . $self->get_conf('HOST_ARCH'));
     }
 
     if (defined($self->get_conf('PGP_OPTIONS')) &&