forked from tectonic-typesetting/tectonic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build.rs: add a mode to go for "semi-static" compilation
By "semi-static" I mean that the final binary is not statically linked, but that it only dynamically links with core system libraries. Higher-level like harfbuzz are linked into the executable statically. This is accomplished by an environment variable TECTONIC_PKGCONFIG_FORCE_SEMI_STATIC=1, since I discovered that the pkg-config-rs library's logic for encouraging static linking will turn it off in the common case that our static libraries live in standard system prefixes. Unfortunately, graphite2 seems to have issues with its various static builds (e.g. silnrsi/graphite#54) so we won't always get a super-minimal list of dependencies, but this seems to get us most of the way there, and I've coded it so that we should start doing better if/when graphite2 is fixed.
- Loading branch information
Showing
1 changed file
with
58 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters