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

qmake: incorrect distclean rule for static libraries with DESTDIR

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.2.1
    • 4.4.3
    • Build tools: qmake
    • None
    • f604c94f18104a88f5ed6274b2a62eda69efe937

      Consider the following .pro file:

      TEMPLATE = lib
      CONFIG += staticlib
      DESTDIR = foo
      TARGET= bar

      The actual result of running qmake on this .pro file results in the following Makefile contents:

      ...
      DESTDIR = foo/
      TARGET = libbar.a
      ...
      distclean: clean
      -$(DEL_FILE) $(TARGET)
      -$(DEL_FILE) Makefile
      ...

      However, the expected distclean rule is:

      distclean: clean
      -$(DEL_FILE) foo/$(TARGET)
      -$(DEL_FILE) Makefile

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

            buddenha Oswald Buddenhagen
            sthomass Stian Sandvik Thomassen (closed Nokia identity) (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes