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

cpr: add pic and shared variants #13

Open
1 task done
prudhomm opened this issue Oct 29, 2024 · 0 comments
Open
1 task done

cpr: add pic and shared variants #13

prudhomm opened this issue Oct 29, 2024 · 0 comments
Assignees

Comments

@prudhomm
Copy link
Member

Summary

This issue proposes adding two new variants, +pic and +shared, to the cpr package in Spack:

  • +pic: Enables building position-independent code (PIC) for static libraries, useful for linking into shared libraries.
  • +shared: Controls whether to build cpr as a shared or static library.

Rationale

  1. Position-Independent Code (+pic): Building position-independent code (PIC) is essential for linking static libraries into shared libraries. Currently, cpr only builds static libraries, which restricts its usability in applications that need to link with PIC-compatible code. By adding a +pic variant, users have the option to enable PIC, improving cpr’s compatibility with larger projects and shared library requirements.
  2. Shared Libraries (+shared): The default static library build limits flexibility, as many projects require shared libraries to manage memory and dependencies more effectively. Adding a +shared variant allows users to choose between static and shared library builds, making cpr more versatile and better suited for dynamic linking needs in complex projects.

Description

No response

Additional information

No response

General information

  • I have searched the issues of this repo and believe this is not a duplicate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant