diff options
Diffstat (limited to 'tools/apbuild/apinit')
-rwxr-xr-x | tools/apbuild/apinit | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/apbuild/apinit b/tools/apbuild/apinit index 37892303..fd0642fe 100755 --- a/tools/apbuild/apinit +++ b/tools/apbuild/apinit @@ -2,8 +2,12 @@ use warnings; use strict; -my $arch=`uname -m`; -chomp $arch; -`cp apsymbols.h.$arch apsymbols.h`; +my $ARCH = $ENV{ARCH}; +if (!defined $ARCH) { + print "apinit: ARCH is not set\n"; + exit -1; +} + +`cp apsymbols.h.$ARCH apsymbols.h`; |