diff --git a/v2/tools/qt4.jam b/v2/tools/qt4.jam index 71d1b7620..cd70b5c72 100644 --- a/v2/tools/qt4.jam +++ b/v2/tools/qt4.jam @@ -297,13 +297,19 @@ rule init ( prefix : full_bin ? : full_inc ? : full_lib ? : version ? : conditio # Setup common pre-built Qt. # Special setup for QtCore on which everything depends { + local link = [ feature.get-values link : $(condition) ] ; + local usage-requirements = $(.incprefix) $(.libprefix) - $(.libprefix) multi qt4 ; + if $(link) in shared + { + usage-requirements += $(.libprefix) ; + } + local suffix ; # Since Qt-4.2, debug versions on unix have to be built @@ -323,8 +329,11 @@ rule init ( prefix : full_bin ? : full_inc ? : full_lib ? : version ? : conditio { .have_separate_debug = TRUE ; - # On NT, the libs have "4" suffix, and "d" suffix in debug builds. - .suffix_version = "4" ; + # On NT, the shared libs have "4" suffix, and "d" suffix in debug builds. + if $(link) in shared + { + .suffix_version = "4" ; + } .suffix_debug = "d" ; # On Windows we must link against the qtmain library