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

LP:618282 - libmysqld.a is not compiled with -fPIC

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      The binary objects in the embedded library (libmysqld.a) are not all compiled with fPIC, this leads to the following error message when attempting to create a position-independant executable (-pie):

      /usr/bin/ld: /opt/mariadb/lib/mysql/libmysqld.a(my_new.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC

      I can recompile manually mariadb by adding -fPIC to CFLAGS, but it would be nice to have this option turned on in the binary Linux distribution as well.

      Attachments

        Activity

          People

            knielsen Kristian Nielsen
            christophedevine Christophe Devine (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 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.