-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cross-compilation / Android support.
1. New configure options for cross-compilation support: o -host=<host-type> The type of system on which TAU runs. This is used to designate the cross compiler prefix. o -hostutils Build TAU utils for <host-type>. Without this option, TAU utils (e.g. pprof) will be built to run on the arch / machine used to build TAU, i.e. don't cross compile TAU utils. 2. New valid value for `-arch': arm_android 3. And crossponding script/source code change. Former-commit-id: b0f83f80ddae46f6bb15924132c8c3fc6fc82fc0
- Loading branch information
Ender Dai
committed
Sep 20, 2013
1 parent
5a6f469
commit 6b8d167
Showing
19 changed files
with
169 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
diff -u -r binutils-2.23.2/libiberty/getpagesize.c binutils-2.23.2-patched/libiberty/getpagesize.c | ||
--- binutils-2.23.2/libiberty/getpagesize.c 2005-03-27 18:09:01.000000000 -0800 | ||
+++ binutils-2.23.2-patched/libiberty/getpagesize.c 2013-07-08 11:39:27.314956014 -0700 | ||
@@ -60,11 +60,14 @@ | ||
# endif /* PAGESIZE */ | ||
#endif /* GNU_OUR_PAGESIZE */ | ||
|
||
+/* BIONIC has getpagesize() defined in <unistd.h> */ | ||
+#ifndef __BIONIC__ | ||
int | ||
getpagesize (void) | ||
{ | ||
return (GNU_OUR_PAGESIZE); | ||
} | ||
+#endif /* __BIONIC__ */ | ||
|
||
#else /* VMS */ | ||
|
||
@@ -76,6 +79,8 @@ | ||
#endif | ||
extern unsigned long lib$getsyi(const unsigned short *,...); | ||
|
||
+/* BIONIC has getpagesize() defined in <unistd.h> */ | ||
+#ifndef __BIONIC__ | ||
int getpagesize (void) | ||
{ | ||
long pagsiz = 0L; | ||
@@ -86,5 +91,6 @@ | ||
pagsiz = 512L; /* VAX default */ | ||
return (int) pagsiz; | ||
} | ||
+#endif /* __BIONIC__ */ | ||
|
||
#endif /* VMS */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.