summaryrefslogtreecommitdiff
path: root/tools/apbuild/apgcc
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-04-30 21:22:39 +0200
committerGravatar waker <wakeroid@gmail.com>2012-04-30 21:28:38 +0200
commit5abbd96a58cc324167e5161d53f0add4dc45aa68 (patch)
tree62e05a3d153523952f12e673efeb4fe9619456c1 /tools/apbuild/apgcc
parent298f66721bf96aeed42b7712519a95776496d4d6 (diff)
x86_64 static build support
Diffstat (limited to 'tools/apbuild/apgcc')
-rwxr-xr-xtools/apbuild/apgcc5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/apbuild/apgcc b/tools/apbuild/apgcc
index 2aba0071..8b81686c 100755
--- a/tools/apbuild/apgcc
+++ b/tools/apbuild/apgcc
@@ -19,7 +19,6 @@ use Apbuild::Utils;
# Don't forget to bump the version in Makefile too.
our $APBUILD_VERSION = "2.0.9";
-
######## Initialization ########
# In C mode:
@@ -79,6 +78,10 @@ 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');