Commit 8edb8dc8 by Pavel Chupin Committed by Kirill Yukhin

Fix LIB_SPEC for systems without libpthread.

	* config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
	* config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
	for Android.
	* config/i386/linux-common.h: Likewise.
	* config/mips/linux-common.h: Likewise.

From-SVN: r201871
parent d71ff3fa
2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
Fix LIB_SPEC for systems without libpthread.
* config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
* config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
for Android.
* config/i386/linux-common.h: Likewise.
* config/mips/linux-common.h: Likewise.
2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn> 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
* tree-ssa-ccp.c (get_default_value): Remove redundant condition * tree-ssa-ccp.c (get_default_value): Remove redundant condition
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
#undef LIB_SPEC #undef LIB_SPEC
#define LIB_SPEC \ #define LIB_SPEC \
LINUX_OR_ANDROID_LD (GNU_USER_TARGET_LIB_SPEC, \ LINUX_OR_ANDROID_LD (GNU_USER_TARGET_LIB_SPEC, \
GNU_USER_TARGET_LIB_SPEC " " ANDROID_LIB_SPEC) GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC " " ANDROID_LIB_SPEC)
#undef STARTFILE_SPEC #undef STARTFILE_SPEC
#define STARTFILE_SPEC \ #define STARTFILE_SPEC \
......
...@@ -82,10 +82,14 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see ...@@ -82,10 +82,14 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#undef CPLUSPLUS_CPP_SPEC #undef CPLUSPLUS_CPP_SPEC
#define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)" #define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)"
#define GNU_USER_TARGET_LIB_SPEC \ #define GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC \
"%{pthread:-lpthread} \ "%{shared:-lc} \
%{shared:-lc} \
%{!shared:%{mieee-fp:-lieee} %{profile:-lc_p}%{!profile:-lc}}" %{!shared:%{mieee-fp:-lieee} %{profile:-lc_p}%{!profile:-lc}}"
#define GNU_USER_TARGET_LIB_SPEC \
"%{pthread:-lpthread} " \
GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
#undef LIB_SPEC #undef LIB_SPEC
#define LIB_SPEC GNU_USER_TARGET_LIB_SPEC #define LIB_SPEC GNU_USER_TARGET_LIB_SPEC
......
...@@ -40,7 +40,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -40,7 +40,7 @@ along with GCC; see the file COPYING3. If not see
#undef LIB_SPEC #undef LIB_SPEC
#define LIB_SPEC \ #define LIB_SPEC \
LINUX_OR_ANDROID_LD (GNU_USER_TARGET_LIB_SPEC, \ LINUX_OR_ANDROID_LD (GNU_USER_TARGET_LIB_SPEC, \
GNU_USER_TARGET_LIB_SPEC " " ANDROID_LIB_SPEC) GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC " " ANDROID_LIB_SPEC)
#undef STARTFILE_SPEC #undef STARTFILE_SPEC
#define STARTFILE_SPEC \ #define STARTFILE_SPEC \
......
...@@ -44,7 +44,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -44,7 +44,7 @@ along with GCC; see the file COPYING3. If not see
#undef LIB_SPEC #undef LIB_SPEC
#define LIB_SPEC \ #define LIB_SPEC \
LINUX_OR_ANDROID_LD (GNU_USER_TARGET_LIB_SPEC, \ LINUX_OR_ANDROID_LD (GNU_USER_TARGET_LIB_SPEC, \
GNU_USER_TARGET_LIB_SPEC " " ANDROID_LIB_SPEC) GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC " " ANDROID_LIB_SPEC)
#undef STARTFILE_SPEC #undef STARTFILE_SPEC
#define STARTFILE_SPEC \ #define STARTFILE_SPEC \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment