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

qt-configure-module does not use CMAKE_CXX_FLAGS from qtbase's configure

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.0.0 Beta3
    • Build System: CMake

      I configure qtbase with

      ../configure -cmake -debug -xcb -no-warnings-are-errors -no-pch \
          -nomake tests -nomake examples \
          -prefix /home/cc-runs/install_dir \
          -no-sse3 -no-ssse3 -no-sse4.1 -no-sse4.2 -no-avx -no-avx2 -no-avx512 \
          -- -DCMAKE_C_COMPILER=clang-11 -DCMAKE_CXX_COMPILER=clang++-11 -DCMAKE_CXX_FLAGS=-stdlib=libc++
      

      Then I was getting strange linking errors ("symbol not found") in QtSvg module. I configure QtSvg as:

      /home/cc-runs/install_dir/bin/qt-configure-module ..
      

      My linking errors were gone after changing the configure line as such:

      /home/cc-runs/install_dir/bin/qt-configure-module .. -- -DCMAKE_CXX_FLAGS='-stdlib=libc++'
      

      Shouldn't the CMAKE_CXX_FLAGS be remembered? Please note that CMAKE_CXX_COMPILER is indeed remembered.

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

            qtbuildsystem Qt Build System Team
            jimis Dimitrios Apostolou
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes