diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-12-19 21:14:57 +0100 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-12-19 21:14:57 +0100 |
commit | 14466b156ca5b46b2b43ef483aa14018cc4542a2 (patch) | |
tree | e84defbf4a2afb075defbe2d7fd2fc9ff7e0fecf /tools/apbuild/apinit | |
parent | fc493f5e80de2860c73b998c8ce187ea68bedcdf (diff) |
added crosscompiling support to apbuild and pluginfo
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`; |