[cfe-commits] [PATCH] Add -ldl for libgcc in Android environment

Logan Chien tzuhsiang.chien at gmail.com
Mon Nov 19 02:57:48 PST 2012


Ping.  Is this OK to commit?  Thanks.


On Thu, Nov 15, 2012 at 11:30 PM, Logan Chien <tzuhsiang.chien at gmail.com>wrote:

> Yes.
>
>
>
> On Thu, Nov 15, 2012 at 9:27 PM, Simon Atanasyan <satanasyan at mips.com>wrote:
>
>> Hi,
>>
>> On Thu, Nov 15, 2012 at 7:44 AM, Logan Chien <tzuhsiang.chien at gmail.com>
>> wrote:
>> > It seems that non-static libgcc for MIPS (in Android NDK) depends on
>> _Unwind_Find_FDE
>> > and dl_iterate_phdr from libdl.  Thus, we have to add -ldl if we are
>> linking with non-static libgcc.
>> > The attached patch should resolve the issue.
>>
>> Does gcc driver do the same thing in that case and pass -ldl to the
>> linker?
>>
>> --
>> Simon
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121119/6d11fa4c/attachment.html>


More information about the cfe-commits mailing list