aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorSteven Peters2014-02-20 23:52:14 -0700
committerMike McQuaid2014-02-21 10:59:50 +0000
commitb2e531106424c61a6128d80b95de8dd97f2e600c (patch)
treeb7063b8395a16949a9da802edc9ed2cb3df3e735 /Library
parente7a0af8b60c987e56a690d63a17ae0e0d1bc4a33 (diff)
downloadhomebrew-b2e531106424c61a6128d80b95de8dd97f2e600c.tar.bz2
irrlicht: fix linking.
The irrlicht formula is being built using xcodebuild with an xcodeproj file that has the base SDK specified as 10.9. There are missing symbols when trying to link against this on 10.8, so this commit specifies the 10.8 sdk when mountain lion is the system os. Closes #26881. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/irrlicht.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Formula/irrlicht.rb b/Library/Formula/irrlicht.rb
index 02f3bcb63..c469afbdb 100644
--- a/Library/Formula/irrlicht.rb
+++ b/Library/Formula/irrlicht.rb
@@ -9,7 +9,10 @@ class Irrlicht < Formula
depends_on :xcode
def install
- system *%W(xcodebuild -project source/Irrlicht/MacOSX/MacOSX.xcodeproj -configuration Release -target libIrrlicht.a)
+ args = %W(-project source/Irrlicht/MacOSX/MacOSX.xcodeproj -configuration Release -target libIrrlicht.a)
+ args << 'SYMROOT=build'
+ args << '-sdk' << "macosx#{MacOS.version}"
+ system 'xcodebuild', *args
lib.install "source/Irrlicht/MacOSX/build/Release/libIrrlicht.a"
include.install "include" => "irrlicht"
end