-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As MiniPortile2's mkmf_config doesn't quite work for our use case yet, refactor to combine its approach with our previous one: stop using MiniPortile#activate to populate the required compiler and linker options and instead set them ourselves based on the output of pkg-config. The key things we're trying to replace are as follows: * Populating $CPPFLAGS and $LIBPATH with dir_config * Populating $libs, $INCFLAGS, $LDFLAGS, $CFLAGS and $CXXFLAGS with pkg_config Instead, we only set the following: * $LIBPATH with the paths reported by pkg-config --libs-only-L * $libs with all libraries, replacing them with static absolute paths where possible * $INCFLAGS as reported by pkg-config --cflags-only-I * $CFLAGS and $CXXFLAGS as reported by pkg-config --cflags-only-other
- Loading branch information
Showing
1 changed file
with
55 additions
and
9 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