Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-30712

no way to specify librarian flags

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.4.0
    • 4.8.4
    • Build tools: qmake
    • None
    • VS 2010
    • d8f940930e0dbcea4ee136550b4ca5a38f03b1dc

    Description

      I got bitten by a problem similar to this

      So I need to explicitly set /MACHINE for a static library.
      It seems like the undocumented QMAKE_LIBFLAGS works in nmake mode but it's completely ignored for VS project files.
      I tried 'QMAKE_LIBFLAGS += $${QMAKE_LFLAGS}' but of course this is flawed since LFLAGS_RELEASE and so on isn't included.

      I don't know how much overlap there is for link and lib commandline flags but at least some of them are the same, like the needed /MACHINE option.
      So maybe qmake could extract relevant options from LFLAGS or provide some other way to properly specify librarian flags without too much redundancy.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              jbornema Joerg Bornemann
              trass3r Unk
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes