sqlite3 with icu needs several adjustments in Runtime/Setup.PyRun and Python-.../Makefile.pre
Opened this issue · 0 comments
daa commented
This issue is more informational than bug report or feature request because I don't really know how to automatically detect such situation and I don't want to suggest building libraries ourselves from scratch.
To build pyrun linked statically against sqlite3 with icu support following changes were needed:
- add libraries from
icu-config --ldflags
(-licui18n
,-licuuc
,-licudata
) to_sqlite3
description inRuntime/Setup.PyRun-2.7
- add
-static-libstdc++ -static-libgcc
toCXX
variable inMakefile.pre
and changeLINKCC
fromCC
toCXX
- this is required because icu libraries are written in c++ and require its standard library, so linker has to know how to link statically againstlibstdc++
. However if dynamic linking tolibstdc++
is acceptable this paragraph is not needed and it's sufficient to add-lstdc++
to changes in first item.
I've noticed that this issue looks like blog post, sorry for abusing your tracker.