[swift-dev] SwiftAndroid: Statically linking libicu and/or the stdlib?
Geordie Jay
geojay at gmail.com
Tue Jan 5 13:10:28 CST 2016
Thanks for your reply Dmitri. I ended up getting this working by manually
changing the SONAME and other internal references from within and to ICU
from the stdlib and APKs are now working on all the non-rooted devices I
have available to me.
I don't know my way around CMake to make major (or evidently even minor)
changes to the build, but a statically linked stdlib would certainly be
advantageous for other uses as well, e.g. for Emscripten. One thing at a
time though..
Happy new year,
Geordie
Dmitri Gribenko <gribozavr at gmail.com> schrieb am Di., 22. Dez. 2015 um
06:45:
> On Mon, Dec 21, 2015 at 6:13 PM, Geordie Jay via swift-dev <
> swift-dev at swift.org> wrote:
>
>> ./utils/build-script -R --no-assertions -b -p --extra-swift-args
>> build-swift-static-stdlib=1
>>
>
> This option builds static archives of the standard library, not a standard
> library that links in everything statically.
>
> I would expect you would need to add some non-trival amount of CMake code
> if you want to statically link ICU.
>
> Dmitri
>
> --
> main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
> (j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20160105/0d314b38/attachment.html>
More information about the swift-dev
mailing list