Merge pull request #2700 from sjackman/env-std-linux
Stdenv: Add ENV.libxml2 and ENV.x11 for Linux
This commit is contained in:
commit
17650628b3
@ -210,6 +210,8 @@ module Stdenv
|
||||
end
|
||||
alias generic_set_cpu_flags set_cpu_flags
|
||||
|
||||
def x11; end
|
||||
|
||||
# @private
|
||||
def effective_arch
|
||||
if ARGV.build_bottle?
|
||||
|
||||
@ -1,2 +1,6 @@
|
||||
require "extend/ENV/std"
|
||||
require "extend/os/mac/extend/ENV/std" if OS.mac?
|
||||
if OS.mac?
|
||||
require "extend/os/mac/extend/ENV/std"
|
||||
elsif OS.linux?
|
||||
require "extend/os/linux/extend/ENV/std"
|
||||
end
|
||||
|
||||
7
Library/Homebrew/extend/os/linux/extend/ENV/std.rb
Normal file
7
Library/Homebrew/extend/os/linux/extend/ENV/std.rb
Normal file
@ -0,0 +1,7 @@
|
||||
module Stdenv
|
||||
def libxml2
|
||||
append "CPPFLAGS", "-I#{Formula["libxml2"].include/"libxml2"}"
|
||||
rescue FormulaUnavailableError
|
||||
nil
|
||||
end
|
||||
end
|
||||
Loading…
x
Reference in New Issue
Block a user