summaryrefslogtreecommitdiff
path: root/qmake/tools/qlibrary.cpp
Unidiff
Diffstat (limited to 'qmake/tools/qlibrary.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--qmake/tools/qlibrary.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/qmake/tools/qlibrary.cpp b/qmake/tools/qlibrary.cpp
index 564db30..be1d54b 100644
--- a/qmake/tools/qlibrary.cpp
+++ b/qmake/tools/qlibrary.cpp
@@ -5,5 +5,5 @@
5** 5**
6** Created : 2000-01-01 6** Created : 000101
7** 7**
8** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. 8** Copyright (C) 2000-2003 Trolltech AS. All rights reserved.
9** 9**
@@ -73,3 +73,3 @@ QLibraryPrivate::QLibraryPrivate( QLibrary *lib )
73 \mainclass 73 \mainclass
74 \group plugins 74 \ingroup plugins
75 75
@@ -328,3 +328,4 @@ QString QLibrary::library() const
328#else 328#else
329 if ( filename.find( ".so" ) == -1 ) { 329 QString filter = ".so";
330 if ( filename.find(filter) == -1 ) {
330 const int x = filename.findRev( "/" ); 331 const int x = filename.findRev( "/" );
@@ -333,5 +334,5 @@ QString QLibrary::library() const
333 QString file = filename.right( filename.length() - x - 1 ); 334 QString file = filename.right( filename.length() - x - 1 );
334 filename = QString( "%1lib%2.so" ).arg( path ).arg( file ); 335 filename = QString( "%1lib%2.%3" ).arg( path ).arg( file ).arg( filter );
335 } else { 336 } else {
336 filename = QString( "lib%1.so" ).arg( filename ); 337 filename = QString( "lib%1.%2" ).arg( filename ).arg( filter );
337 } 338 }