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

Support static linking against FreeType #12

Open
alexchandel opened this issue Jan 16, 2015 · 8 comments
Open

Support static linking against FreeType #12

alexchandel opened this issue Jan 16, 2015 · 8 comments

Comments

@alexchandel
Copy link

Static linking against FreeType is possible, and FreeType supplies a static form, libfreetype.a. It should be possible to link against this instead of the dynamic library.

@bvssvni
Copy link
Member

bvssvni commented Jan 17, 2015

+1

@bvssvni
Copy link
Member

bvssvni commented Feb 4, 2015

Are there any other -sys libraries that supports both static and dynamical linking which we could use for reference?

@mbrubeck
Copy link

mbrubeck commented Feb 4, 2015

openssl-sys uses static or dynamic linking depending on the target, but it could be done based on other configuration info instead:

https://github.com/sfackler/rust-openssl/blob/7b8aa9b9153ba4da4069bafbc3d0d4b476f25f9c/openssl-sys/build.rs#L18-L22

@alexchandel
Copy link
Author

I imagine we'd default to static, and switch dynamic if that wasn't available or if prefer-dynamic was passed.

@bvssvni
Copy link
Member

bvssvni commented Feb 5, 2015

Statically linking by default is fine for me.

@Potpourri
Copy link
Member

This is still relevant?

@bvssvni
Copy link
Member

bvssvni commented Feb 14, 2015

I believe so.

@retep998
Copy link
Member

retep998 commented Oct 8, 2015

Static linking should just work fine already on Windows if you have a static version of freetype and specify that as the library name instead of the dynamic version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants