aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.7/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.7/gcc')
-rw-r--r--gcc-4.7/gcc/config/arm/linux-eabi.h2
-rw-r--r--gcc-4.7/gcc/config/linux-android.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/gcc-4.7/gcc/config/arm/linux-eabi.h b/gcc-4.7/gcc/config/arm/linux-eabi.h
index 88811b7ec..ddeb627c9 100644
--- a/gcc-4.7/gcc/config/arm/linux-eabi.h
+++ b/gcc-4.7/gcc/config/arm/linux-eabi.h
@@ -87,7 +87,7 @@
#undef LIB_SPEC
#define LIB_SPEC \
LINUX_OR_ANDROID_LD (GNU_USER_TARGET_LIB_SPEC, \
- GNU_USER_TARGET_LIB_SPEC " " ANDROID_LIB_SPEC)
+ ANDROID_LIB_SPEC " " GNU_USER_TARGET_LIB_SPEC )
#undef STARTFILE_SPEC
#define STARTFILE_SPEC \
diff --git a/gcc-4.7/gcc/config/linux-android.h b/gcc-4.7/gcc/config/linux-android.h
index 033cfefd1..c6d9cddb9 100644
--- a/gcc-4.7/gcc/config/linux-android.h
+++ b/gcc-4.7/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: crtbegin_so%O%s;:" \