Message ID | 20111214180717.GU28260@dream.aleph1.co.uk |
---|---|
State | Accepted |
Headers | show |
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')) &&