Skip to content

Commit

Permalink
yasm: Add LIBS,INCLUDES
Browse files Browse the repository at this point in the history
To support Xcode without CLT installations we need to set LIBS and
INCLUDES, because the default flags are not fully respected by their
build scripts.

Closes Homebrew#12448.

Signed-off-by: Jack Nagel <[email protected]>
  • Loading branch information
samueljohn authored and jacknagel committed Jun 5, 2012
1 parent 785f6f8 commit f2e4be4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Library/Formula/yasm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ def install
args << '--enable-python-bindings'
end

# Avoid "ld: library not found for -lcrt1.10.6.o" on Xcode without CLT
ENV['LIBS'] = ENV.ldflags
ENV['INCLUDES'] = ENV.cppflags
system './autogen.sh' if ARGV.build_head?
system './configure', *args
system 'make install'
Expand Down

0 comments on commit f2e4be4

Please sign in to comment.