diff options
Diffstat (limited to 'Library/Formula')
| -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 |
