Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static compilation of rapidyaml + optional static libc via musl #208

Open
wants to merge 1 commit into
base: rapidyaml
Choose a base branch
from

Conversation

biojppm
Copy link
Collaborator

@biojppm biojppm commented Jan 2, 2025

To compile statically, use SHARED=0. Then the make variable MUSL will
control if the static libc should be used. This is done via a cmake
toolchain file (added here) to the use musl toolchain, which the
makefile downloads as appropriate.

Other minor changes:

  • improve makefile dependencies
  • rapidyaml's build directory is now under ./_build with
    differentiating name

@biojppm biojppm requested a review from ingydotnet January 2, 2025 20:13
@biojppm biojppm self-assigned this Jan 2, 2025
@biojppm biojppm marked this pull request as draft January 2, 2025 20:14
@biojppm biojppm force-pushed the rapidyaml-static-linking branch from f08cc57 to 4cadd1f Compare January 4, 2025 20:12
@biojppm biojppm changed the title WIP rapidyaml static linking Static compilation of rapidyaml + optional static libc via musl Jan 4, 2025
@biojppm biojppm marked this pull request as ready for review January 4, 2025 20:13
@ingydotnet ingydotnet force-pushed the rapidyaml branch 2 times, most recently from 298e77f to b530cc8 Compare January 5, 2025 15:20
@biojppm biojppm force-pushed the rapidyaml-static-linking branch 2 times, most recently from 662397f to 60b0d49 Compare January 5, 2025 16:19
@biojppm biojppm force-pushed the rapidyaml-static-linking branch 3 times, most recently from 36a7cd0 to 279264b Compare January 5, 2025 20:57
To disable musl, use RAPIDYAML_MUSL=0. When enabled, a cmake
toolchain file (added here) is used. The makefile downloads the
toolchain as appropriate.

Other minor changes:
 - improve makefile dependencies
 - rapidyaml's build directory is now under ./_build with
   differentiating name
@biojppm biojppm force-pushed the rapidyaml-static-linking branch from 279264b to 1f6b3b7 Compare January 5, 2025 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant