Module: OS::Linux::Stdenv Private

Extended by:
T::Helpers
Included in:
Stdenv
Defined in:
extend/os/linux/extend/ENV/std.rb

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

Instance Method Details

#libxml2void

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.



37
38
39
40
41
# File 'extend/os/linux/extend/ENV/std.rb', line 37

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.

Parameters:

  • formula (::Formula, nil) (defaults to: nil)
  • cc (String, nil) (defaults to: nil)
  • build_bottle (Boolean, nil) (defaults to: false)
  • bottle_arch (String, nil) (defaults to: nil)
  • testing_formula (Boolean) (defaults to: false)
  • debug_symbols (Boolean, nil) (defaults to: false)


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