1 From 34a534bda4181abfe6a25d09778c431d3e9585bd Mon Sep 17 00:00:00 2001 2 From: David 'Digit' Turner <digit (a] google.com> 3 Date: Tue, 21 Feb 2012 15:00:02 +0100 4 Subject: Use the correct CRT files with -shared link option 5 6 Change-Id: I5f9b28cc3bcf7d3a0ead9777d26b563ff6e82760 7 --- 8 gcc-4.4.3/gcc/config/linux-android.h | 4 ++-- 9 2 files changed, 4 insertions(+), 4 deletions(-) 10 11 diff --git a/gcc-4.4.3/gcc/config/linux-android.h b/gcc-4.4.3/gcc/config/linux-android.h 12 index d30e157..1edc398 100644 13 --- a/gcc-4.4.3/gcc/config/linux-android.h 14 +++ b/gcc-4.4.3/gcc/config/linux-android.h 15 @@ -54,7 +54,7 @@ 16 17 #define ANDROID_STARTFILE_SPEC \ 18 "%{!shared:" \ 19 - " %{static: crtbegin_static%O%s;: crtbegin_dynamic%O%s}}" 20 + " %{static: crtbegin_static%O%s;: crtbegin_dynamic%O%s};: crtbegin_so%O%s}" 21 22 #define ANDROID_ENDFILE_SPEC \ 23 - "%{!shared: crtend_android%O%s}" 24 + "%{!shared: crtend_android%O%s;: crtend_so%O%s}" 25 -- 26 1.7.6.rc0 27 28