summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/apbuild/apgcc4
-rwxr-xr-xtools/apbuild/apinit9
2 files changed, 9 insertions, 4 deletions
diff --git a/tools/apbuild/apgcc b/tools/apbuild/apgcc
index be4863a3..ddda846b 100755
--- a/tools/apbuild/apgcc
+++ b/tools/apbuild/apgcc
@@ -78,10 +78,6 @@ if (!defined $appath) {
$appath = $FindBin::Bin;
}
}
-my $arch=`uname -m`;
-chomp $arch;
-`cp $appath/apsymbols.h.$arch $appath/apsymbols.h`;
-
# Special constants
our @linking = ('-Wl,--enable-new-dtags,--rpath,${ORIGIN}/../lib,--rpath,${ORIGIN}/../lib/autopackage');
diff --git a/tools/apbuild/apinit b/tools/apbuild/apinit
new file mode 100755
index 00000000..37892303
--- /dev/null
+++ b/tools/apbuild/apinit
@@ -0,0 +1,9 @@
+#!/usr/bin/env perl
+use warnings;
+use strict;
+
+my $arch=`uname -m`;
+chomp $arch;
+`cp apsymbols.h.$arch apsymbols.h`;
+
+