Skip to content

Fixes for Mac issues #55

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

Merged
merged 2 commits into from
Mar 17, 2017
Merged

Fixes for Mac issues #55

merged 2 commits into from
Mar 17, 2017

Conversation

robryk
Copy link
Contributor

@robryk robryk commented Mar 17, 2017

This should fix various build problems on Mac (#39 and #41).

robryk added 2 commits March 17, 2017 21:24
This is a workaround for google#41. I don't understand why it should help. The
only downside is that it increased on-disk binary size (but not
in-memory size).
This should cause the build to work in cases when one needs to provide
custom library and include directories. This should fix google#39.
@robryk robryk requested a review from jyrkialakuijala March 17, 2017 20:25
@jyrkialakuijala jyrkialakuijala merged commit c78689c into google:master Mar 17, 2017
robryk added a commit to robryk/guetzli that referenced this pull request Mar 17, 2017
@kornelski
Copy link

There's no libgflags. The package is called gflags

libpng works though.

pkg-config --libs libpng gflags

@robryk
Copy link
Contributor Author

robryk commented Mar 18, 2017

Oh gosh; even this is not consistent between environments (on my Ubuntu it's the exact reverse: there is libgflags.pc but not gflags.pc).

@kornelski
Copy link

Ahh, joys of C dependencies :)

This works for me on macOS:

pkg-config --silence-errors --libs libgflags || pkg-config --libs gflags

@robryk
Copy link
Contributor Author

robryk commented Mar 18, 2017

Ah, thanks, that's better than specifying both with --silence-errors.

robryk added a commit to robryk/guetzli that referenced this pull request Mar 18, 2017
It turns out that some environments have gflags.pc and some have
libgflags.pc. So, try both. Fixes google#61 and fixes google#55.
robryk added a commit to robryk/guetzli that referenced this pull request Mar 18, 2017
It turns out that some environments have gflags.pc and some have
libgflags.pc. So, try both. Fixes google#61 and fixes google#55.
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

Successfully merging this pull request may close these issues.

3 participants