Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • L libffi
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GStreamer
  • Meson Ports
  • libffi
  • Merge requests
  • !14

Merged
Created Dec 06, 2021 by fasterthanlime@fasterthanlimeContributor

Set FFI_STATIC_BUILDING in declare_dependency if making a static library

  • Overview 3
  • Commits 1
  • Pipelines 2
  • Changes 1

When doing static builds of glib on Windows, libffi is typically built from source using a Meson subproject.

The FFI_STATIC_BUILD define needs to be set when linking statically against libffi. It can either be set in glib's own meson.build, or directly in libffi's meson.build, if my understanding is correct.

This is useful for PRs/MRs like https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1655/ which try to get static msvc glib builds on Windows to work out of the box.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: amos/win-msvc-static-linking