From b2e531106424c61a6128d80b95de8dd97f2e600c Mon Sep 17 00:00:00 2001 From: Steven Peters Date: Thu, 20 Feb 2014 23:52:14 -0700 Subject: 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 --- Library/Formula/irrlicht.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Library') 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 -- cgit v1.2.3