lua: Using our LDFLAGS

This is needed for Xcode-only installations, since the LDFLAGS matter.

Closes Homebrew/homebrew#12856.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
master
samueljohn 2012-06-15 11:43:50 +02:00 committed by Misty De Meo
parent 8e21b4f84f
commit 45bb14af8b
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ class Lua < Formula
inreplace 'src/Makefile' do |s|
s.remove_make_var! 'CC'
s.change_make_var! 'CFLAGS', "#{ENV.cflags} $(MYCFLAGS)"
s.change_make_var! 'MYLDFLAGS', ENV['LDFLAGS']
end
# Fix path in the config header