diff options
| author | Kaito Udagawa | 2016-11-22 23:28:40 +0900 |
|---|---|---|
| committer | Kaito Udagawa | 2016-11-22 23:52:26 +0900 |
| commit | 00b18c3587cb445c5b1db43d43968f5cebf0d67f (patch) | |
| tree | 78e57c04079f042a0c9bd2363a7b4d8c11e0f754 /Library | |
| parent | c3f959d6af36f075600aac63f208d59c30cd602c (diff) | |
| download | brew-00b18c3587cb445c5b1db43d43968f5cebf0d67f.tar.bz2 | |
osxfuse_requirement: add library and include paths
In the installation whose prefix is other than /usr/local,
osxfuse library and include path must explicitly be specified during build.
Although brew's pkg-config is configured to prepend appropriates paths,
the prepended paths (/usr/local) supercede the original HOMEBREW_PREFIX.
This behavior will cause the linker to select libraries outside brew's tree.
By adding /usr/local to HOMEBREW_LIBRARY_PATHS, superenv ensures that appears
only after the HOMEBREW_PREFIX, and thus fixes this problem.
HOMEBREW_INCLUDE_PATHS is also configured like keg-only Formulae.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/requirements/osxfuse_requirement.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/requirements/osxfuse_requirement.rb b/Library/Homebrew/requirements/osxfuse_requirement.rb index 63ccf934f..d5a341567 100644 --- a/Library/Homebrew/requirements/osxfuse_requirement.rb +++ b/Library/Homebrew/requirements/osxfuse_requirement.rb @@ -14,6 +14,11 @@ class OsxfuseRequirement < Requirement env do ENV.append_path "PKG_CONFIG_PATH", HOMEBREW_LIBRARY/"Homebrew/os/mac/pkgconfig/fuse" + + unless HOMEBREW_PREFIX.to_s == "/usr/local" + ENV.append_path "HOMEBREW_LIBRARY_PATHS", "/usr/local/lib" + ENV.append_path "HOMEBREW_INCLUDE_PATHS", "/usr/local/include/osxfuse" + end end end |
