From dde738c77e57b2dfcf75e79679512a6af2ab9d5c Mon Sep 17 00:00:00 2001 From: nibbles 2bits Date: Mon, 4 Jun 2012 17:50:31 -0700 Subject: qt: add --developer-build option Qt4 has a configure option, `--developer-build` that compiles and links Qt with Qt developer options. This feature was requested in an issue. Add that as a user install option. This has no affect on the bottles, which can remain unchanged. This compiles without error on Lion using llvm-gcc from XCode-4.3.2. Closes #12284. Closes #12595. Signed-off-by: Charlie Sharpsteen --- Library/Formula/qt.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/qt.rb b/Library/Formula/qt.rb index d60df49dd..1251e52e0 100644 --- a/Library/Formula/qt.rb +++ b/Library/Formula/qt.rb @@ -23,6 +23,7 @@ class Qt < Formula ['--with-demos-examples', "Enable Qt demos and examples."], ['--with-debug-and-release', "Compile Qt in debug and release mode."], ['--universal', "Build both x86_64 and x86 architectures."], + ['--developer', 'Compile and link Qt with Qt developer options'] ] end @@ -74,6 +75,8 @@ class Qt < Formula args << "-release" end + args << '-developer-build' if ARGV.include? '--developer' + # Needed for Qt 4.8.1 due to attempting to link moc with gcc. ENV['LD'] = ENV.cxx -- cgit v1.2.3