[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gnu-libiconv] Error cross-compiling to Android as shared librar

From: Frederik Seiffert
Subject: Re: [bug-gnu-libiconv] Error cross-compiling to Android as shared library
Date: Thu, 2 Jul 2020 20:20:25 +0200

Hi Bruno,

Am 02.07.2020 um 17:20 schrieb Bruno Haible <bruno@clisp.org>:

I haven't been able to create shared libraries even in a native compilation
on Android (with libtool).

Does the Android NDK mention such a restriction?

Not that I know of or have found anything about.

Or is libtool not customized for supporting Android? Does a web search reveal
possible adaptations for libtool on Android?

According to its change log, libtool gained Android support back in 2013.

However, your comment sent me on another web crawl specific to libtool and Android, and this comment helped me to fix the issue:

Changing LD to Android’s "ld" instead of clang allowed me to build libiconv as a shared library. clang worked fine as linker for everything else I’ve been building (I think it just forwards to ld), so I’m not sure why this fixes the issue here – maybe a bug in libtool?

In any case, thank you for your help!

Here’s the build script in case this is useful to anyone:

Env vars are specified here:


reply via email to

[Prev in Thread] Current Thread [Next in Thread]