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 Homebrew/homebrew#12284. Closes Homebrew/homebrew#12595. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
This commit is contained in:
parent
6a20b3ad76
commit
db9d8c9492
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue