aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.3/gcc
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2012-12-26 17:08:36 -0800
committerGerrit Code Review <noreply-gerritcodereview@google.com>2012-12-26 17:08:36 -0800
commit001afd51a767aef75b27675b0fafe203bada4774 (patch)
tree79fa72516bc66d239799bef4f68526df11188b7d /gcc-4.4.3/gcc
parent946c2a6b57ac7d3b2b656ac628bcb14a216ec635 (diff)
parent1271761f530c0050154e8d526b95f952df551751 (diff)
downloadtoolchain_gcc-001afd51a767aef75b27675b0fafe203bada4774.tar.gz
toolchain_gcc-001afd51a767aef75b27675b0fafe203bada4774.tar.bz2
toolchain_gcc-001afd51a767aef75b27675b0fafe203bada4774.zip
Merge "Modifications to enable OpenMP in Android."
Diffstat (limited to 'gcc-4.4.3/gcc')
-rw-r--r--gcc-4.4.3/gcc/config/arm/linux-eabi.h2
-rw-r--r--gcc-4.4.3/gcc/config/linux-android.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/gcc-4.4.3/gcc/config/arm/linux-eabi.h b/gcc-4.4.3/gcc/config/arm/linux-eabi.h
index 9004f0171..d44fcddda 100644
--- a/gcc-4.4.3/gcc/config/arm/linux-eabi.h
+++ b/gcc-4.4.3/gcc/config/arm/linux-eabi.h
@@ -87,7 +87,7 @@
#undef LIB_SPEC
#define LIB_SPEC \
LINUX_OR_ANDROID_LD (LINUX_TARGET_LIB_SPEC, \
- LINUX_TARGET_LIB_SPEC " " ANDROID_LIB_SPEC)
+ ANDROID_LIB_SPEC " " LINUX_TARGET_LIB_SPEC )
#undef STARTFILE_SPEC
#define STARTFILE_SPEC \
diff --git a/gcc-4.4.3/gcc/config/linux-android.h b/gcc-4.4.3/gcc/config/linux-android.h
index f9fcf5ba3..b5bc2bb64 100644
--- a/gcc-4.4.3/gcc/config/linux-android.h
+++ b/gcc-4.4.3/gcc/config/linux-android.h
@@ -53,7 +53,8 @@
"--noexecstack"
#define ANDROID_LIB_SPEC \
- "%{!static: -ldl}"
+ "%{!static: -ldl} \
+ %{pthread:-lc}"
#define ANDROID_STARTFILE_SPEC \
"%{!shared:" \