Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sqlite3 with icu needs several adjustments in Runtime/Setup.PyRun and Python-.../Makefile.pre #11

Open
daa opened this issue Sep 15, 2016 · 0 comments

Comments

@daa
Copy link

daa commented Sep 15, 2016

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:

  1. add libraries from icu-config --ldflags (-licui18n, -licuuc, -licudata) to _sqlite3 description in Runtime/Setup.PyRun-2.7
  2. add -static-libstdc++ -static-libgcc to CXX variable in Makefile.pre and change LINKCC from CC to CXX - this is required because icu libraries are written in c++ and require its standard library, so linker has to know how to link statically against libstdc++. However if dynamic linking to libstdc++ 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant