Add ENV.ldflags and use.
This commit is contained in:
parent
eb6fad4879
commit
0b55dd1c78
3 changed files with 6 additions and 6 deletions
|
@ -10,8 +10,8 @@ class Calc <Formula
|
|||
def install
|
||||
ENV.deparallelize
|
||||
|
||||
ENV['EXTRA_LDFLAGS'] = ENV['LDFLAGS']
|
||||
ENV['EXTRA_CFLAGS'] = ENV['CFLAGS']
|
||||
ENV['EXTRA_CFLAGS'] = ENV.cflags
|
||||
ENV['EXTRA_LDFLAGS'] = ENV.ldflags
|
||||
|
||||
readline = Formula.factory('readline')
|
||||
inreplace "Makefile" do |s|
|
||||
|
|
|
@ -28,8 +28,8 @@ Cflags: -I${includedir}
|
|||
|
||||
# See: http://github.com/mxcl/homebrew/issues/issue/1263
|
||||
inreplace "Makefile" do |s|
|
||||
s.change_make_var! "CFLAGS", ENV['CFLAGS']
|
||||
s.change_make_var! "LDFLAGS", ENV['LDFLAGS']
|
||||
s.change_make_var! "CFLAGS", ENV.cflags
|
||||
s.change_make_var! "LDFLAGS", ENV.ldflags
|
||||
end
|
||||
|
||||
system "make install"
|
||||
|
|
|
@ -8,8 +8,8 @@ class Unpaper <Formula
|
|||
def install
|
||||
# Fix make.sh to take CFLAGS/LDFLAGS from environment
|
||||
inreplace "make.sh" do |s|
|
||||
s.change_make_var! "CFLAGS", ENV['CFLAGS']
|
||||
s.change_make_var! "LDFLAGS", ENV['LDFLAGS']
|
||||
s.change_make_var! "CFLAGS", ENV.cflags
|
||||
s.change_make_var! "LDFLAGS", ENV.ldflags
|
||||
end
|
||||
system 'bash make.sh'
|
||||
bin.install 'unpaper'
|
||||
|
|
Loading…
Reference in a new issue