summaryrefslogtreecommitdiff
path: root/tools/apbuild
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-12-19 21:14:57 +0100
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-12-19 21:14:57 +0100
commit14466b156ca5b46b2b43ef483aa14018cc4542a2 (patch)
treee84defbf4a2afb075defbe2d7fd2fc9ff7e0fecf /tools/apbuild
parentfc493f5e80de2860c73b998c8ce187ea68bedcdf (diff)
added crosscompiling support to apbuild and pluginfo
Diffstat (limited to 'tools/apbuild')
-rwxr-xr-xtools/apbuild/apinit10
-rw-r--r--tools/apbuild/apsymbols.h.i6861
2 files changed, 8 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`;
diff --git a/tools/apbuild/apsymbols.h.i686 b/tools/apbuild/apsymbols.h.i686
index 4a4727b2..67021823 100644
--- a/tools/apbuild/apsymbols.h.i686
+++ b/tools/apbuild/apsymbols.h.i686
@@ -6,6 +6,7 @@ APBUILD_NOTE_METADATA("apbuild.version=" APBUILD_VERSION);
#endif
/* apbuild generated symbol exclusion list */
+__asm__(".symver __ctype_toupper,__ctype_toupper@GLIBC2.0");
__asm__(".symver memcpy,memcpy@GLIBC_2.0");
__asm__(".symver _sys_errlist,_sys_errlist@GLIBC_2.0");
__asm__(".symver _sys_nerr,_sys_nerr@GLIBC_2.0");