Patch for static compiling
MySQL database connector for Python programming
Brought to you by:
adustman
This patch against setup_posix.py provides more robust static compilation logic. Static compilation is unsuccessful in our environment without this. It makes setup_posix.py actually verify the path for the client library, and properly removes references to the shared version from the libraries array.
Tested under Red Hat RHELv3.
A unified diff containing the patch
Logged In: YES
user_id=703727
Originator: YES
The first patch I submitted only considers linking statically to libmysqlclient. This version looks for all available static libraries to link to, which would typically mean libz is statically linked as well.
File Added: mypatch.diff