Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • mesa mesa
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2,694
    • Issues 2,694
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 907
    • Merge requests 907
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Mesa
  • mesamesa
  • Merge requests
  • !5012

WIP: meson: Don't hardcode the default shared library prefix

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Jon Turney requested to merge jturney/mesa:cygwin-shared-library-prefix-fix into main May 12, 2020
  • Overview 2
  • Commits 1
  • Pipelines 2
  • Changes 7

Notwithstanding the current meson documentation, the default behaviour of name_prefix is more complex than "'lib' unless MSVC Windows, then ''".

Write 'name_prefix: []' to get the host-appropriate default behaviour, rather than assuming it's 'lib'.

Unfortunately, that feature is not working in many meson versions (See https://github.com/mesonbuild/meson/pull/6958).

Refine 63f5aee6 so we use the default shared library name prefix, except on Windows, where we use 'lib' (rather than the default of no prefix).

Refine 1a058119 similarly, so we use the default shared library name prefix, except on Windows, where we use no prefix with all toolchains.

This allows the correct default shared library prefix to be used on Cygwin (which is 'cyg' for the shared library, but 'lib' for the import library, for complex historical reasons).

Edited May 05, 2021 by Jordan Justen
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: cygwin-shared-library-prefix-fix