Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-29973

BUILD: libmariadb/plugins/auth/ have_C__Wl___as_needed is set incorrectly

    XMLWordPrintable

Details

    Description

      The following line in CMakeLists.txt is erroneous:

      CHECK_C_COMPILER_FLAG(-Wl,--as-needed have_C__Wl___as_needed)
      

      The problem is that it uses CHECK_C_COMPILER_FLAG() to test for a linker flag, which can result in false positives. Need to use CHECK_LINKER_FLAG() instead:

      CHECK_LINKER_FLAG(C --as-needed have_C__Wl___as_needed)
      

      This is a regression from 10.6.10.

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              debohman David Bohman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.