You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
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
The text was updated successfully, but these errors were encountered:
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
Description
No response
Additional information
No response
General information
The text was updated successfully, but these errors were encountered: