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

Compile PHP with freetype support #32

Closed
wants to merge 1 commit into from

Conversation

gardenia
Copy link

No description provided.

@gardenia
Copy link
Author

I believe so. The heroku runtime enviornment ships with a libfreetype.so just no headers:

~ $ ls -al /usr/lib/libfreetype.so
lrwxrwxrwx 1 root root 21 2013-07-09 17:06 /usr/lib/libfreetype.so -> libfreetype.so.6.3.22

My approach was to depend on said library as an implicit link and runtime dependency and just supply the headers for the build stage. The only potential downside I see with that is if Heroku modify the version of their runtime libfreetype.so and some core freetype function prototype happens to get removed/changed then there would be a runtime mismatch but that doesn't seem that likely.

I compiled it successfully on Vulcan using vulcan-build-php from scratch and here is the ldd on the resulting php binary:

~ $ ldd /app/vendor/php/bin/php | grep free
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007faf2d678000)

I verified that it works at runtime by running the following:

@iphoting
Copy link
Owner

iphoting commented Aug 1, 2013

@gardenia, thanks for the clarification. I believe this can also help resolve #25.
I'll pull in the patch next week when I return from my vacation.

Once again, thanks for the effort!

@iphoting
Copy link
Owner

I've recompiled PHP v5.4.17 in my s3 repo with the changes applied in this PR.

@ghost ghost assigned iphoting Aug 13, 2013
@iphoting iphoting closed this in 95aad83 Aug 18, 2013
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.

2 participants