summaryrefslogtreecommitdiff
path: root/Build.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Build.pm')
-rw-r--r--Build.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Build.pm b/Build.pm
index 4277c46..9ad2ca0 100644
--- a/Build.pm
+++ b/Build.pm
@@ -24,6 +24,7 @@ use strict;
use Digest::MD5;
use Build::Rpm;
use Data::Dumper;
+use File::Basename;
our $expand_dbg;
@@ -174,7 +175,8 @@ sub read_config_dist {
}
sub get_hostarch {
- my $hostarch = `uname -m` || 'i586';
+ my $dirname = dirname(__FILE__);
+ my $hostarch = `$dirname/host_arch` || 'i586';
return $hostarch;
}