Ignore:
Timestamp:
Jul 13, 2011, 1:59:46 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

qmake: os2/gnumake: Removed unnecessary shortening the import library name for the DLL target when TARGET_SHORT is present. Import libraries are often referenced through the LIBS variable in .pro files and this change makes such referencing work w/o the need to change them to shortened ones for the OS/2 platform. Closes #225. Note: this changeset depends on r885.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qmake/generators/os2/gnumake.cpp

    r884 r886  
    615615
    616616    if (mode == DLL) {
    617         /* we neeed $(TARGET_IMPLIB) to be in sync with getLibTarget() */
    618         t << "TARGET_IMPLIB = $(basename $(DESTDIR_TARGET)).lib" << endl;
     617        // Note: $(TARGET) may be shortened here due to TARGET_SHORT, use
     618        // the original TARGET value (shortening does not affect implib names)
     619        t << "TARGET_IMPLIB = $(DESTDIR)\\" << var("TARGET") << ".lib" << endl;
    619620    }
    620621}
     
    666667    // GNUMakefileGenerator::findLibraries()
    667668    return;
    668 }
    669 
    670 QString GNUMakefileGenerator::getLibTarget()
    671 {
    672     if (mode == DLL)
    673         return QString("$(notdir $(TARGET_IMPLIB))");
    674     return Win32MakefileGenerator::getLibTarget();
    675669}
    676670
Note: See TracChangeset for help on using the changeset viewer.