Add debug symbol lookup fix to Qt.

This commit is contained in:
Mike McQuaid committed 2011-05-08 20:22:57 +01:00
1 parent a8a0c3e56a
commit eb3bb8f047
1 file changed
+10 -6
+10 -6
View File
@@ -43,12 +43,6 @@ class Qt < Formula
args << "-no-qt3support"
end
if ARGV.include? '--with-debug-and-release'
args << "-debug-and-release"
else
args << "-release"
end
unless ARGV.include? '--with-demos-examples'
args << "-nomake" << "demos" << "-nomake" << "examples"
end
@@ -61,6 +55,16 @@ class Qt < Formula
args << '-arch' << 'x86'
end
if ARGV.include? '--with-debug-and-release'
args << "-debug-and-release"
# Debug symbols need to find the source so build in the prefix
Dir.chdir '..'
mv "qt-everywhere-opensource-src-#{version}", "#{prefix}/src"
Dir.chdir "#{prefix}/src"
else
args << "-release"
end
system "./configure", *args
system "make"
ENV.j1