Changeset 57 for trunk/qmake
- Timestamp:
- Jun 26, 2009, 12:46:18 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/qmake/generators/os2/gnumake.cpp
r55 r57 320 320 writeLibDirPart(t); 321 321 QString opt = var("QMAKE_LFLAGS_LIB"); 322 QString optL = var("QMAKE_LFLAGS_LIBDIR"); 322 323 QStringList libs = project->values("QMAKE_LIBS"); 323 324 for(QStringList::Iterator it = libs.begin(); it != libs.end(); ++it) { … … 325 326 /* lib may be prefixed with -l which is commonly used in e.g. PRF 326 327 * (feature) files on all platforms; remove it before prepending 327 * the compiler-specific option */ 328 if (lib.startsWith("-l")) 328 * the compiler-specific option. There is even more weird case 329 * when LIBS contains library paths prefixed with -L; we detect 330 * this as well and replace it with the proper option. */ 331 if (lib.startsWith("-L")) { 329 332 lib = lib.mid(2); 330 t << " " << opt << lib; 333 t << " " << optL << lib; 334 } else { 335 if (lib.startsWith("-l")) 336 lib = lib.mid(2); 337 t << " " << opt << lib; 338 } 331 339 } 332 340 t << endl;
Note:
See TracChangeset
for help on using the changeset viewer.