Module: OS::Linux::Stdenv Private
This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.
Instance Method Summary collapse
- #libxml2 ⇒ Object private
- #setup_build_environment(formula: nil, cc: nil, build_bottle: false, bottle_arch: nil, testing_formula: false, debug_symbols: false) ⇒ void private
Instance Method Details
#libxml2 ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
36 37 38 39 40 |
# File 'extend/os/linux/extend/ENV/std.rb', line 36 def libxml2 append "CPPFLAGS", "-I#{::Formula["libxml2"].include/"libxml2"}" rescue FormulaUnavailableError nil end |
#setup_build_environment(formula: nil, cc: nil, build_bottle: false, bottle_arch: nil, testing_formula: false, debug_symbols: false) ⇒ void
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
This method returns an undefined value.
21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'extend/os/linux/extend/ENV/std.rb', line 21 def setup_build_environment(formula: nil, cc: nil, build_bottle: false, bottle_arch: nil, testing_formula: false, debug_symbols: false) super prepend_path "CPATH", HOMEBREW_PREFIX/"include" prepend_path "LIBRARY_PATH", HOMEBREW_PREFIX/"lib" prepend_path "LD_RUN_PATH", HOMEBREW_PREFIX/"lib" return unless @formula prepend_path "CPATH", @formula.include prepend_path "LIBRARY_PATH", @formula.lib prepend_path "LD_RUN_PATH", @formula.lib end |