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

Logan Chien tzuhsiang.chien at gmail.com
Thu Nov 15 07:30:57 PST 2012


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/20121115/da4baece/attachment.html>


More information about the cfe-commits mailing list