From b6e375800c9a2f02a732cbdf5e87a860c3d954e1 Mon Sep 17 00:00:00 2001 From: Andrew Hsieh Date: Thu, 27 Dec 2012 09:14:35 +0800 Subject: Fix OpenMP Based on 1271761f530c0050154e8d526b95f952df551751, 92c478dba755a1a2f6f00ff390666acbffd41982, and 51df2e98d22e2c6f5d2a16860bc8fc3644179c1d. With the following modifications: 1. Translate -pthread to -lc instead of -lpthread Android doesn't have (has pthread* in libc.so instead) 2. Because of 1., we can restore to the original order of LINUX_OR_ANDROID_LD Change-Id: I505250c32b9908cb17bb269dc26e73c91669c07f --- gcc-4.4.3/gcc/config/linux-android.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc-4.4.3/gcc/config/linux-android.h') diff --git a/gcc-4.4.3/gcc/config/linux-android.h b/gcc-4.4.3/gcc/config/linux-android.h index b5bc2bb64..7f6076293 100644 --- a/gcc-4.4.3/gcc/config/linux-android.h +++ b/gcc-4.4.3/gcc/config/linux-android.h @@ -54,7 +54,7 @@ #define ANDROID_LIB_SPEC \ "%{!static: -ldl} \ - %{pthread:-lc}" + %{pthread: -lc}" #define ANDROID_STARTFILE_SPEC \ "%{!shared:" \ -- cgit v1.2.3