diff options
| author | Keith Obenschain <obenschaink@gmail.com> | 2012-03-23 17:14:06 -0400 |
|---|---|---|
| committer | Keith Obenschain <obenschaink@gmail.com> | 2012-03-23 17:14:06 -0400 |
| commit | 1271761f530c0050154e8d526b95f952df551751 (patch) | |
| tree | 4ce535cc9afdb94b354a23a9848ed0a3ca9ea7cf /gcc-4.4.3/libgomp/env.c | |
| parent | cf90705c8503b3a763801a4f31f6f2272015f0dc (diff) | |
| download | toolchain_gcc-1271761f530c0050154e8d526b95f952df551751.tar.gz toolchain_gcc-1271761f530c0050154e8d526b95f952df551751.tar.bz2 toolchain_gcc-1271761f530c0050154e8d526b95f952df551751.zip | |
Modifications to enable OpenMP in Android.
This patch enables OpenMP support in the Android NDK by modifying the following:
Specify that pthreads are supported in -lc instead of -lpthread (linux-android.h)
Change the order of ANDROID_LIB_SPEC and LINUX_TARGET_LIB_SPEC so the above change will take precedence (linux-eabi.h)
Modified autoconf for libgomp to check to see if the pthread libraries exist in libc (configure.ac)
Added include to env.c so PAGE_SIZE is defined.
To enable these changes, add "--enable-libgomp" to configure command under build-gcc.sh.
Change-Id: I8b460159b768f64f5198ef5494346cdf75510250
Signed-off-by: Keith Obenschain <obenschaink@gmail.com>
Diffstat (limited to 'gcc-4.4.3/libgomp/env.c')
| -rw-r--r-- | gcc-4.4.3/libgomp/env.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc-4.4.3/libgomp/env.c b/gcc-4.4.3/libgomp/env.c index c870433f3..6809fdfa1 100644 --- a/gcc-4.4.3/libgomp/env.c +++ b/gcc-4.4.3/libgomp/env.c @@ -43,6 +43,7 @@ #endif #include <limits.h> #include <errno.h> +#include <asm/page.h> #ifndef HAVE_STRTOULL # define strtoull(ptr, eptr, base) strtoul (ptr, eptr, base) |
