diff options
| author | Mike McQuaid | 2011-05-08 20:22:57 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2011-05-08 20:22:57 +0100 |
| commit | eb3bb8f047eb13aec15430472c824ef91be57d28 (patch) | |
| tree | b4ddb190dc2f913afa07f50ffdd9206acfa8d9ed | |
| parent | a8a0c3e56a7cea03e06f7b3c874af973704f6e3e (diff) | |
| download | homebrew-eb3bb8f047eb13aec15430472c824ef91be57d28.tar.bz2 | |
Add debug symbol lookup fix to Qt.
| -rw-r--r-- | Library/Formula/qt.rb | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/Library/Formula/qt.rb b/Library/Formula/qt.rb index f943c988e..d4804f7ab 100644 --- a/Library/Formula/qt.rb +++ b/Library/Formula/qt.rb @@ -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 |
