Hello,

Here is a patch which adds -mandroid option support to x86 target. OK
for google/gcc-4_6_2-mobile branch?

Thanks,
Ilya
--
2012-02-21  Enkovich Ilya  <ilya.enkov...@intel.com>

        * config/i386/linux.h (LINUX_TARGET_CC1_SPEC): New.
        (CC1_SPEC): Use LINUX_OR_ANDROID_CC.
        (CC1PLUS_SPEC): Likewise.
        (LINUX_TARGET_LINK_SPEC): New.
        (LINK_SPEC): Support LINUX_OR_ANDROID_LD.
        (LIB_SPEC): New.
        (STARTFILE_SPEC): New.
        (LINUX_TARGET_ENDFILE_SPEC): New.
        (ENDFILE_SPEC): Support LINUX_OR_ANDROID_LD.

        * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
        crtbegin_so%O%s for -shared.
        (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.

Attachment: Add-mandroid-support-for-x86.patch
Description: Binary data

Reply via email to