clang: Fix arm build to target armv7 (fixes #282)
[termux-packages] / packages / gcc / gcc-config-i386-linux-common.h.patch
1 diff -u -r ../gcc-6.1.0/gcc/config/i386/linux-common.h ./gcc/config/i386/linux-common.h
2 --- ../gcc-6.1.0/gcc/config/i386/linux-common.h 2016-01-04 09:30:50.000000000 -0500
3 +++ ./gcc/config/i386/linux-common.h 2016-04-29 05:05:00.192965005 -0400
4 @@ -30,7 +30,13 @@
5 #undef CC1_SPEC
6 #define CC1_SPEC \
7 LINUX_OR_ANDROID_CC (GNU_USER_TARGET_CC1_SPEC, \
8 - GNU_USER_TARGET_CC1_SPEC " " ANDROID_CC1_SPEC)
9 + GNU_USER_TARGET_CC1_SPEC \
10 + ANDROID_TARGET_CC1_SPEC \
11 + " " \
12 + ANDROID_CC1_SPEC("-fPIC"))
13 +
14 +#define CC1PLUS_SPEC \
15 + LINUX_OR_ANDROID_CC ("", ANDROID_CC1PLUS_SPEC)
16
17 #undef LINK_SPEC
18 #define LINK_SPEC \