Uploaded image for project: 'MariaDB Connector/ODBC'
  1. MariaDB Connector/ODBC
  2. ODBC-55

Build with dynamic library (in CmakeLists.txt)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.12
    • Fix Version/s: 3.0.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      Fedora24

      Description

      Hello, I'm trying to pack and distribute odbc-connector to Fedora repos.

      But there is a issue with static lib, since there can't be any in Fedora (if posssible).
      But hey, i have a workaround! Just make it optional to build it with dynamic library instead.

      Edit file CMakeLists.txt on line 211 and add following:

      IF(MARIADB_DYNAMIC_LIB)
        SET(MARIADB_LIB ${MARIADB_DYNAMIC_LIB})
      ENDIF()
      

      Now I can build it safely with

      cmake ./ -DMARIADB_DYNAMIC_LIB="/usr/lib64mariadb/libmariadb.so"
      

      and you will not lose any functionality.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Lawrin Lawrin Novitsky
              Reporter:
              Faramos Michal Schorm
              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.