Fix problems with dylib linking #65

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@harrijauri

Changed postgres-dylib-linker shell script to ruby script, which uses otool -D to read library id:s from dylibs and changes them to @loader_path/../lib/library_id format with install_name_tool.
Then it uses otool to get linked libraries from dylib, so, bundle and executable files and changes
linking to @loader_path/../lib/ -format with install_name_tool

Linker option -headerpad_max_install_names is added to libjasper and libjpeg.

Scons build script python path is changed from /usr/local/bin/python to /usr/bin/env python
to make it work with system python.

In my tests this fixes issue #32 and most if not all dylib problems.

@harrijauri harrijauri Fix problems with dylib linking
postgres-dylib-linker: changed shell script to ruby script,
which uses otool to get library names from dylib, bundle and binaries
and changes them to @loader_path/../lib/ format with install_name_tool.

libjasper, libjpeg: added option -headerpad_max_install_names

scons: build script python path changed from
/usr/local/bin/python to /usr/bin/env python
25c4914
@mattt
Contributor
mattt commented May 1, 2013

Hi @harrijauri, thanks for this patch. Unfortunately, because of my complete lack of attentiveness to this project for the last few months, it's hard to tell if there's anything from this that could be merged in. As far as I know, the dylib issue was fixed with some recent commits, so I'm hopeful that the problems solved by this patch are no longer an issue. Please open a new issue if there's something that needs to happen with the latest. Again, apologies for the delay on everything, @harrijauri.

@mattt mattt closed this May 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment