diff mbox

[config] Add missing crt*.o in start and end file specs for linux-android.h

Message ID CAH9SEo7g=22G7X6vkGT5aoyMDkMpn+KN4FKoB9nJEyTdFk_d1w@mail.gmail.com
State New
Headers show

Commit Message

Doug Kwan (關振德) Aug. 26, 2011, 12:44 a.m. UTC
Hi,

    We received this from Intel and would like to check in the trunk.
Could the maintainers of gcc/config take a look?

Thanks.

-Doug


2011-08-25  Mark D Horn <mark.d.horn@intel.com>

        config/linux-android.h (ANDROID_STARTFILE_SPEC, ANDROID_ENDFILE_SPEC):
        Add missing crt*.o objects for shared building a library.

Comments

Doug Kwan (關振德) Sept. 23, 2011, 7:58 p.m. UTC | #1
ping?

On Thu, Aug 25, 2011 at 5:44 PM, Doug Kwan (關振德) <dougkwan@google.com> wrote:
> Hi,
>
>    We received this from Intel and would like to check in the trunk.
> Could the maintainers of gcc/config take a look?
>
> Thanks.
>
> -Doug
>
>
> 2011-08-25  Mark D Horn <mark.d.horn@intel.com>
>
>        config/linux-android.h (ANDROID_STARTFILE_SPEC, ANDROID_ENDFILE_SPEC):
>        Add missing crt*.o objects for shared building a library.
>
diff mbox

Patch

Index: gcc/config/linux-android.h
===================================================================
--- gcc/config/linux-android.h	(revision 178053)
+++ gcc/config/linux-android.h	(working copy)
@@ -54,7 +54,7 @@ 
 
 #define ANDROID_STARTFILE_SPEC						\
   "%{!shared:"								\
-  "  %{static: crtbegin_static%O%s;: crtbegin_dynamic%O%s}}"
+  "  %{static: crtbegin_static%O%s;: crtbegin_dynamic%O%s};: crtbegin_so%O%s}"
 
 #define ANDROID_ENDFILE_SPEC \
-  "%{!shared: crtend_android%O%s}"
+  "%{!shared: crtend_android%O%s;: crtend_so%O%s}"