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

Dynamically link against libz.dylib on OS X? #5

Closed
dpeek opened this issue Jun 8, 2013 · 1 comment
Closed

Dynamically link against libz.dylib on OS X? #5

dpeek opened this issue Jun 8, 2013 · 1 comment

Comments

@dpeek
Copy link
Contributor

dpeek commented Jun 8, 2013

Hi Nicolas,

I'm trying to create a homebrew package for Neko and Haxe. Homebrew is a light weight package manager written in Ruby that tries to be a "good citizen" on OS X. Part of that is avoiding installing libraries that already exist on OS X.

Unfortunately OS X does not provide a statically linkable zlib, only a dylib. I have a package working that installs libz as a dependency, but the project owners have asked if it would be possible to link dynamically against libz.dylib.

Thought it was worth asking if it was possible before I tried to do it myself :)
You can see the thread here: Homebrew/legacy-homebrew#20329

(note I'm building against a fork as I needed to add some library paths, currently the make file assumes macports is being used)

Best,
David

@dpeek
Copy link
Contributor Author

dpeek commented Jun 11, 2013

I should have investigated before creating an issue. OS X was passing -static to install.neko, removing this links dynamically of couse.

Could you explain the reason why this flag was set? I'll test this build today and see if I encounter any issues, it would be helpful to understand the reason though :)

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

2 participants