Fixed a bug in libdir handling.

We need to use QMAKE_LIBDIR instead of QMAKE_LFLAGS and -L, because
MSVC does not understand -L.
This commit is contained in:
axis 2011-01-24 10:14:42 +01:00
parent 0f7380b2e7
commit a93039b229

View File

@ -131,7 +131,7 @@ defineTest(qtAddModule) {
isEmpty(LINKAGE) { isEmpty(LINKAGE) {
# Make sure we can link to uninstalled libraries # Make sure we can link to uninstalled libraries
!isEqual(MODULE_LIBS, $[QT_INSTALL_LIBS]) { !isEqual(MODULE_LIBS, $[QT_INSTALL_LIBS]) {
QMAKE_LFLAGS *= -L$$MODULE_LIBS QMAKE_LIBDIR *= $$MODULE_LIBS
unix:QMAKE_LFLAGS *= "-Wl,-rpath-link,$$MODULE_LIBS" unix:QMAKE_LFLAGS *= "-Wl,-rpath-link,$$MODULE_LIBS"
} }
if(!debug_and_release|build_pass):CONFIG(debug, debug|release) { if(!debug_and_release|build_pass):CONFIG(debug, debug|release) {
@ -152,6 +152,7 @@ defineTest(qtAddModule) {
export(INCLUDEPATH) export(INCLUDEPATH)
export(QMAKE_FRAMEWORKPATH) export(QMAKE_FRAMEWORKPATH)
export(QMAKE_LFLAGS) export(QMAKE_LFLAGS)
export(QMAKE_LIBDIR)
return(true) return(true)
} }